using System.ComponentModel.DataAnnotations;

namespace Siger.Middlelayer.Repository.Request
{
    public class RequestAddProjectType
    {
        [Required(ErrorMessage = "NameIsEmpty")]
        public string name { get; set; }

        [Required(ErrorMessage = "DescriptionIsEmpty")]
        public string description { get; set; }

        public string roleid { get; set; }

        public string flag { get; set; }
    }

    public class RequestUpdateProjectType: RequestAddProjectType
    {
        [Required(ErrorMessage = "IdIsEmpty")]
        public int id { get; set; }
    }
}
