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 HelpDeskSave(CustomerInquiry customer) { customer.InquiryDate = DateTime.Now; var result = new CustomerInquiryBO().SaveContactUs(customer); if (result) { if (customer.InquiryType == 1503) { TempData["DisplayMessage"] = "Your request is submitted successfully"; } else if (customer.InquiryType == 1504) { TempData["DisplayMessage"] = "Thanks for your feedback"; } else { TempData["DisplayMessage"] = "Our customer support team will revert shortly"; } } //customersupport:our customer support team will revert shortly; //contactus:your request is submitted succesfully; //feedback:Thanks for your feedback; var emailResult = SendMessageToPickC(customer); return(RedirectToAction("HelpDesk", "Dashboard")); }
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")); }
public ActionResult SaveBooking(Booking booking) { try { booking.BookingDate = DateTime.Now; booking.RequiredDate = DateTime.Now; booking.LoadingUnLoading = 1373; var result = new CustomerInquiryBO().SaveBooking(booking); if (result) { Booking bookings = new CustomerInquiryBO().GetBooking(new Booking { BookingNo = booking.BookingNo }); TempData["TD:BookingInfo"] = new BookingStatusVm { BookingNo = booking.BookingNo, Status = UTILITY.BOOKINGSUCCESS }; return(RedirectToAction("Index")); } else { var CancelBooking = new CustomerInquiryBO().DeleteBooking(new Booking { BookingNo = booking.BookingNo }); TempData["TD:BookingInfo"] = new BookingStatusVm { BookingNo = "", Status = UTILITY.FAILURESTATUS }; return(RedirectToAction("Index")); } } catch (Exception ex) { return(Json(new { BookingNo = "", Status = UTILITY.FAILURESTATUS }, JsonRequestBehavior.AllowGet)); } }