Esempio n. 1
0
        /// <summary>
        /// 修改用户组
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public void Update(GroupInput input)
        {
            GroupEntity group = new GroupEntity
            {
                Id   = input.Id,
                Name = input.Name
            };

            _iGroupRepository.Update(group);
        }
Esempio n. 2
0
        /// <summary>
        /// 添加用户组
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public GroupDto Intsert(GroupInput input)
        {
            GroupEntity group = new GroupEntity
            {
                Id   = Guid.NewGuid().ToString(),
                Name = input.Name
            };
            var      result = _iGroupRepository.Insert(group);
            GroupDto ret    = new GroupDto();

            ret.Id   = result.Id;
            ret.Name = result.Name;
            return(ret);
        }