public User BlockedAmount(string emailid, int amount) { OperationResult <IUserDto> resultUser = _userFacade.BlockAmount(emailid, amount); User result = new User(); if (resultUser.IsValid()) { result.Name = resultUser.Data.Name; result.EmailId = resultUser.Data.EmailId; result.AccountBalance = resultUser.Data.AccountBalance; result.BlockedAmount = resultUser.Data.BlockedAmount; } else { } return(result); }
public UserModel BlockAmount(string id, int amount) { IUserFacade userFacade = (IUserFacade)FacadeFactory.Instance.Create(FacadeType.UserFacade); UserModel model = new UserModel(); OperationResult <IUserDTO> result = userFacade.BlockAmount(id, amount); if (result.IsValid()) { model.Contact_Number = result.Data.Contact_Number; model.Customer_Name = result.Data.Customer_Name; model.Account_Balance = result.Data.Account_Balance; model.Email_Id = result.Data.Email_Id; model.Blocked_Amount = result.Data.Blocked_Amount; model.Unique_User_Id = result.Data.Unique_User_Id; } return(model); }