示例#1
0
        //更新权限信息
        public int Rights_Update(RightsUpdateViewModel rightsUpdateViewModel)
        {
            var user_Rights        = _IUserRightsRepository.GetInfoByRightId(rightsUpdateViewModel.Id);
            var user_Rights_Update = _IMapper.Map <RightsUpdateViewModel, User_Rights>(rightsUpdateViewModel, user_Rights);

            _IUserRightsRepository.Update(user_Rights_Update);
            return(_IUserRightsRepository.SaveChanges());
        }
 public Result <UserType> Update(UserType item)
 {
     return(repo.Update(item));
 }