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

namespace Siger.Middlelayer.Repository.Request
{
    public class RequestAddProjectGroup
    {
        public int departid { get; set; }
        
        public IEnumerable<GroupInfo> groups { get; set; }
    }

    public class GroupInfo
    {
        public int groupid { get; set; }

        public string name { get; set; }
    }

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