using System.ComponentModel.DataAnnotations;

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

        public string description { get; set; }

        public int sorting { get; set; }
    }

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