Most straight forward approach:
public class BaseModel
{
public bool is_valid { get; set; }
}
public class HrFileType : BaseModel
{
public int Id { get; set; }
[Display(Name = "Dosya Tipinin Adı")]
[Required]
public String Name { get; set; }
[Display(Name = "İkaz Periyodu(Gün)")]
public Int64? NotificationPeriod { get; set; }
[Display(Name = "Açıklama")]
public string Note { get; set; }
public virtual ICollection<HrMapPersonFile> HrMapPersonFile { get; set; }
}
And your Update method can be:
void markValid(BaseModel model)
{
model.is_valid = true;
}
Update:
For your File Upload case: Create another Base Class:
public class FileUploadBaseModel : BaseModel
{
//properties you need for file upload
}
And in your model that need fileupload:
public class SomeModelName: FileUploadBaseModel
{
//properties specific for this model
}