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

namespace Siger.Middlelayer.Repository.Request
{
    public class RequestAddUserGroupKeys
    {
        [Required(ErrorMessage = "IdIsEmpty")]
        public int usergroupid { get; set; }

        [Required(ErrorMessage = "UserGroupKeyValueIsEmpty")]
        public IEnumerable<UserGroupKeys> fieldarr { get; set; }
    }

    public class UserGroupKeys
    {
        public string fieldname { get; set; }

        public string fieldunit { get; set; }

        public string fielddescription { get; set; }
    }
}
