//添加权限 public int Rights_Add(RightsAddViewModel rightsAddViewModel) { var user_Rights = _IMapper.Map <RightsAddViewModel, User_Rights>(rightsAddViewModel); _IUserRightsRepository.Add(user_Rights); return(_IUserRightsRepository.SaveChanges()); }
public Result <UserType> Add(UserType item) { return(repo.Add(item)); }