I decided not to make authorization requirements and handlers for each and every resource because the validation logic is pretty similar
18 lines
371 B
C#
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; }
|
|
} |