public HttpResponseMessage SubmitCollection(CollectionSubmitRequestDto request) { if (!_processController.ValidateRequest(request as RequestBase)) { return(Request.CreateErrorResponse(HttpStatusCode.Unauthorized, new UnauthorizedAccessException("Unauthorized access. Please try to log in again."))); } var response = _processController.SubmitCollection(request); if (response.status == "S") { response.ReceiptHtml = TemplateManager.GetReceipt(DateTime.Now.Date, request.RefNo, "", "Rs. " + request.Amount); } return(Request.CreateResponse(HttpStatusCode.OK, response)); }
internal SMSContentModel SubmitCollection(CollectionSubmitRequestDto request) { var Messagemodel = _dbHelper.SubmitCollection(request); if (Messagemodel.status == "S") { var response = new TradeTranResponseModel(); var status_cust = _dbHelper.SendMessage(Messagemodel.CustomerMessage, Messagemodel.CustomerMobile, Messagemodel.CustomerEmail); var status_trad = _dbHelper.SendMessage(Messagemodel.TraderMessage, Messagemodel.TraderMobile, Messagemodel.TraderEmail); return(Messagemodel); } else { return(Messagemodel); } }