using System.ComponentModel.DataAnnotations;

namespace Siger.Middlelayer.Repository.Request
{
    public class RequestAddMaterialType
    {
        public string pid { get; set; }

        [Required(ErrorMessage = "NameIsEmpty")]
        public string name { get; set; }

        [Required(ErrorMessage = "tcodeIsEmpty")]
        public string tcode { get; set; }
    }

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