public ActionResult TripEstimate(CustomerInquiryVm customerInquiryVm) { var customerInquiryBO = new CustomerInquiryBO(); var customerInquiry = new CustomerInquiry(); customerInquiry.MobileNo = customerInquiryVm.MobileNo; customerInquiry.EmailID = customerInquiryVm.EmailID; customerInquiry.CustomerName = customerInquiryVm.CustomerName; customerInquiry.InquiryType = UTILITY.CONFIG_INQ_EST; customerInquiry.InquiryDate = DateTime.Now; customerInquiryBO.Save(customerInquiry); TempData["TD:CustomerInquiry"] = customerInquiryVm; bool _IsTripEstimate = false; if (customerInquiryVm.Distance.HasValue) { var fareChartList = customerInquiryBO.GetApproximateFareWEB(customerInquiryVm.Distance.Value, customerInquiryVm.Duration.Value); TempData["TD:FareChartList"] = fareChartList; _IsTripEstimate = true; } return(RedirectToAction("Index", "Dashboard", new { IsTripEstimate = _IsTripEstimate })); }
public ActionResult Help(string mobileNumber) { var customerInquiryBO = new CustomerInquiryBO(); customerInquiryBO.Save(new CustomerInquiry { InquiryType = UTILITY.CONFIG_INQ_HLP, InquiryDate = DateTime.Now, MobileNo = mobileNumber, EmailID = null, CustomerName = null }); TempData["MessageAppLink"] = "Your Pick-C App Link is sent to : " + mobileNumber; return(RedirectToAction("Index", "Dashboard")); }
public ActionResult AppLink(string appmobileNumber) { var customerInquiryBO = new CustomerInquiryBO(); customerInquiryBO.Save(new CustomerInquiry { InquiryType = UTILITY.CONFIG_INQ_APP, InquiryDate = DateTime.Now, MobileNo = appmobileNumber, EmailID = null, CustomerName = null }); string messageContent = "Your Pick-C App - is one stop solution for all goods transportation services in your city limits ," + "click below link to download your app now." + " < LINK > "; bool sendMessageToMobile = new smsGenerator().ConfigSms(appmobileNumber, messageContent); return(RedirectToAction("Index", "Dashboard")); }