예제 #1
0
 public void AddRoleToUser(int userId, int roleId)
 {
     roleRepository.AddRoleToUser(userId, roleId);
     unitOfWork.Commit();
 }
예제 #2
0
 public bool AddRoleToUser(string goTag, string roleName)
 {
     return(_roleRepository.AddRoleToUser(goTag, roleName));
 }