using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.ComponentModel.DataAnnotations; using Sleis.Validation.Attribute; namespace Sleis.Models { public class AgencyControlDevice : ControlDeviceModel { public virtual IList Identifiers { get; set; } public virtual IList MasterRecordComments { get; set; } public virtual bool IsMaster { get { if (Facility != null && Facility is AgencyFacilityModel) { return ((AgencyFacilityModel)Facility).IsMaster; } return false; } } public AgencyControlDevice() : base() { Identifiers = new List(); MasterRecordComments = new List(); } } }