using System.ComponentModel.DataAnnotations;

namespace Siger.Middlelayer.AccRepository.Request
{
    public class RequestAddWoMaterial
    {
        public string name { get; set; }
        public string spec { get; set; }
        public string pn { get; set; }
        public int quantity { get; set; }
        public string unit { get; set; }
    }

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