using System.ComponentModel.DataAnnotations;

namespace Siger.Middlelayer.Repository.Request
{
    public class RequestAddSparepartType
    {
        [Required(ErrorMessage = "TitleIsEmpty")]
        public string title { get; set; }

        public int userId { get; set; } = 0;

        public string description { get; set; }

        public int parentid { get; set; }

    }

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