Ejemplo n.º 1
0
 public bool DeleteCGUser(CGUserModel user)
 {
     using (UserManagementServiceClient proxy = new UserManagementServiceClient()) {
         CGUser cgU = CGUserModelConverter.ConvertFromClientUserToServiceUser(user);
         proxy.DeleteHand(cgU);
         return(proxy.DeleteCGUser(cgU));
     }
 }
Ejemplo n.º 2
0
 public CGUserModel GetUserByUserName(string userName)
 {
     using (UserManagementServiceClient proxy = new UserManagementServiceClient()) {
         UserManagementServiceReference.CGUser serviceUser = proxy.GetCGUserByUserName(userName);
         Models.CGUserModel clientUser = CGUserModelConverter.ConvertFromServiceUserToClientUser(serviceUser);
         return(clientUser);
     }
 }
Ejemplo n.º 3
0
 public List <CGUserModel> GetAll()
 {
     using (UserManagementServiceClient proxy = new UserManagementServiceClient()) {
         var serviceCGUsers = proxy.GetAll();
         List <Models.CGUserModel> clientCGUsers = CGUserModelConverter.ConvertFromServiceListOfUsersToClientListOfUsers(serviceCGUsers);
         return(clientCGUsers);
     }
 }