drinkrate/DrinkRateAPI/ApiModels/UserProfile/ChangeUserAdminStatusRequest.cs
martinshoob b2b8d1e076 Refactor admin endpoint and logic
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.
2025-08-10 16:23:35 +02:00

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; }
}