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

15 lines
334 B
C#

using System.ComponentModel.DataAnnotations;
using SharedModels.DataTransferObjects;
namespace Server.Models;
public class Country
{
[Key]
public int Id { get; set; }
public string Code { get; set; } = null!;
public string Name { get; set; } = null!;
public virtual IList<State> States { get; set; } = null!;
}