コード例 #1
0
        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));
        }
コード例 #2
0
        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));
        }
コード例 #3
0
        internal GetInitialDataForFundTransferResponseDto GetInitialDataForFundTransfer(BeneficiaryRequestModel request)
        {
            var response = _dbHelper.GetInitialDataForFundTransfer(request);

            return(response);
        }
コード例 #4
0
        //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);
        }