auto.bus_api/Server/Models/Country.cs

20 lines
370 B
C#

using System.ComponentModel.DataAnnotations;
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!;
public string GetFullName()
{
return $"{Name}";
}
}