public void DeleteUser(UsersWM webModel) { try { _usersOperations.DeleteUser(UsersMapping.MapToEntity(webModel)); } catch (Exception ex) { throw new Exception(ex.ToString()); } }
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 }); }