20 lines
631 B
C#
20 lines
631 B
C#
|
|
using System.ComponentModel.DataAnnotations;
|
||
|
|
|
||
|
|
namespace JobsMedical.Web.Models;
|
||
|
|
|
||
|
|
/// <summary>Canonical city list used for filtering. Launch focuses on Tehran.</summary>
|
||
|
|
public class City
|
||
|
|
{
|
||
|
|
public int Id { get; set; }
|
||
|
|
|
||
|
|
[Required, MaxLength(100)]
|
||
|
|
public string Name { get; set; } = ""; // نام شهر، مثل «تهران»
|
||
|
|
|
||
|
|
[MaxLength(100)]
|
||
|
|
public string Province { get; set; } = ""; // استان
|
||
|
|
|
||
|
|
public bool IsActive { get; set; } = true; // آیا در این شهر سرویس فعال است
|
||
|
|
|
||
|
|
public ICollection<Facility> Facilities { get; set; } = new List<Facility>();
|
||
|
|
}
|