using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace Siger.Middlelayer.Repository.Request
{
    public class RequestAddProjectLevel
    {
        [Required(ErrorMessage = "ProjectIdIsEmpty")]
        public string projectid { get; set; }

        public IEnumerable<ProjectLevel> levelarr { get; set; }
    }

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

        public int id { get; set; }
    }

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

        public string title { get; set; }
    }
}
