auto.bus_api/SharedModels/DataTransferObjects/RouteDto.cs
cuqmbr 95028ed18b feat: many thing
- Database model
- Data transfer objects
- Country management controller
2022-10-10 20:34:09 +03:00

19 lines
423 B
C#

using System.ComponentModel.DataAnnotations;
namespace SharedModels.DataTransferObjects;
public class RouteDto : CreateRouteDto
{
public int Id { get; set; }
public virtual IList<RouteAddressDto> RouteAddresses { get; set; } = null!;
}
public class CreateRouteDto
{
[Required]
public string Type { get; set; } = null!;
[Required]
public TimeOnly IntendedDepartureTimeOnlyUtc { get; set; }
}