auto.bus_api/SharedModels/DataTransferObjects/DriverDto.cs
cuqmbr e9af067dfa feat: add imperative resource-based authorization
I decided not to make authorization requirements and handlers for each and every resource because the validation logic is pretty similar
2023-05-22 15:27:11 +03:00

18 lines
371 B
C#

namespace SharedModels.DataTransferObjects;
public class DriverDto : UserDto
{
public int CompanyId { get; set; }
}
public class CreateDriverDto : CreateUserDto
{
public int? CompanyId { get; set; }
public override IList<string>? Roles { get; set; }
}
public class UpdateDriverDto : UpdateUserDto
{
public override IList<string>? Roles { get; set; }
}