Moves the ChangeUserAdminStatusRequest to the ApiModels folder. Updates the admin controller route to "admin" and the admin status endpoint to "adminStatus". Makes the ChangeUserAdminStatus method asynchronous. Uses NotFoundException instead of KeyNotFoundException.
7 lines
No EOL
185 B
C#
7 lines
No EOL
185 B
C#
namespace DrinkRateAPI.ApiModels.UserProfile;
|
|
|
|
public class ChangeUserAdminStatusRequest
|
|
{
|
|
public required string UserId { get; set; }
|
|
public bool ChangeStatusTo { get; set; }
|
|
} |