Adds functionality to allow administrators to modify the admin status of other users. Introduces an endpoint for changing user admin status, accessible only to existing administrators. This change includes necessary services and request models to handle the logic.
7 lines
No EOL
172 B
C#
7 lines
No EOL
172 B
C#
namespace DrinkRateAPI.Requests;
|
|
|
|
public class ChangeUserAdminStatusRequest
|
|
{
|
|
public required string UserId { get; set; }
|
|
public bool ChangeStatusTo { get; set; }
|
|
} |