Ejemplo n.º 1
0
 public void DeleteUser(UsersWM webModel)
 {
     try
     {
         _usersOperations.DeleteUser(UsersMapping.MapToEntity(webModel));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.ToString());
     }
 }
Ejemplo n.º 2
0
 public static Users MapToEntity(UsersWM webModel)
 {
     return(new Users()
     {
         UserID = webModel.UserID,
         UserNameSurname = webModel.UserNameSurname,
         UserTitle = webModel.UserTitle,
         City = webModel.City,
         Country = webModel.Country,
         Phone = webModel.Phone,
         UserAppName = webModel.UserAppName,
         UserPassword = webModel.UserPassword
     });
 }