public HttpResponseMessage GetBeneficiaryList(BeneficiaryRequestModel model) { if (!_processController.ValidateRequest(model as RequestBase)) { return(Request.CreateErrorResponse(HttpStatusCode.Unauthorized, new UnauthorizedAccessException("Unauthorized access. Please try to log in again."))); } var response = _processController.GetBeneficiaries(model); return(Request.CreateResponse(HttpStatusCode.OK, response)); }
public HttpResponseMessage GetBeneficiary(BeneficiaryRequestModel model) { if (!_processController.ValidateRequest(model as RequestBase)) { return(Request.CreateErrorResponse(HttpStatusCode.Unauthorized, new UnauthorizedAccessException("Unauthorized access. Please try to log in again."))); } var response = _processController.GetBeneficiaries(model).ToList().FirstOrDefault(x => x.Id == model.BeneficiaryId); response.BankBranch = "Tripunithura"; response.BankName = "ICICI"; return(Request.CreateResponse(HttpStatusCode.OK, response)); }
internal GetInitialDataForFundTransferResponseDto GetInitialDataForFundTransfer(BeneficiaryRequestModel request) { var response = _dbHelper.GetInitialDataForFundTransfer(request); return(response); }
//internal VerifyCustomerResponseDto UpdatePIN(string oldpassword, string password, string customerId, string deviceId) //{ // var response = _dbHelper.UpdatePassword(password, customerId, deviceId,oldpassword); // return response; //} internal IList <BeneficiaryModel> GetBeneficiaries(BeneficiaryRequestModel request) { var response = _dbHelper.GetBeneficiaryList(Convert.ToInt64(request.MemberId), request.TransferType); return(response); }