using System.ComponentModel.DataAnnotations;

namespace Siger.Middlelayer.Repository.Request
{
    public class RequestAddMachineType
    {
        public int parentid { get; set; }

        [Required(ErrorMessage = "MachineTypeNameIsEmpty")]
        public string title { get; set; }

        public string description { get; set; }
    }

    public class RequestUpdateMachineType : RequestAddMachineType
    {
        [Required(ErrorMessage = "IdIsEmpty")]
        public int machinetypeid { get; set; }
    }
}
