public ActionResult NegotiationForHotelPending(long bookingId) { ViewBag.HeaderBarData = "Confirmation"; var BookingModel = BL_Booking.GetBookingModifyDetails(bookingId); BookingModel.Symbol = "₹"; return(View(BookingModel)); }
public int SendCustAcceptReminderEmail(int bookingId) { try { string notificationSMS_User = string.Empty; var bookingDetails = BL_Booking.GetBookingModifyDetails(bookingId); string statusType = bookingDetails.cBookingStatus; var model = new NegotiationEmailTempleteModel(); model.BookingModify = bookingDetails; var websiteBaseUrl = ConfigurationManager.AppSettings["OFRBaseUrl"].ToString(); string negoStatusUrl = websiteBaseUrl + "Negotiation/NegotiationStatus?bookingId=" + clsUtils.Encode(bookingId.ToString()); string shortNegoStatusUrl = clsUtils.Shorten(negoStatusUrl); //bool Accepted = true; switch (statusType) // Notification mail/SMS to customer. Conserve commission checked and managed. { case "HR": // Hotel has rejected the negotiation. Conserve commission not applied. //model.Status = "Sorry! Your Negotiation is Rejected. Please Check the related offer details by clicking the link below"; notificationSMS_User = "******" + shortNegoStatusUrl; model.Status = notificationSMS_User; //Accepted = false; break; case "CO": // Hotel has countered the negotiation. case "RR": // Rate reduced for "Original rate" through conserve commission. case "CR": // Rate reduced for Counter offer through conserve commission. case "FO": // Final Offer given. model.Status = "Progress! You have received a counter offer ! Please check the details by clicking the link below: "; notificationSMS_User = model.Status; //Accepted = false; break; case "BP": // Hotel has accepted the negotiation. case "RA": // Negotiation accepted by reducing conserve commission on "Original rate". case "NA": // Negotiation accepted. model.Status = "Congratulations! Your offer is accepted! Please Check the details by clicking the link below: "; notificationSMS_User = model.Status; break; case "CA": // counter offer accepted. case "FA": // Final offer accepted. model.Status = "Counter offer was accepted by you! Please Check the details by clicking the link below: "; notificationSMS_User = model.Status; break; case "OA": // counter offer accepted. case "NS": // counter offer accepted. model.Status = "Please Check the details by clicking the link below: "; notificationSMS_User = model.Status; break; } // if (!Accepted) // model.CallbackUrl = websiteBaseUrl + "Negotiation/NegotiationStatus?bookingId=" + clsUtils.Encode(bookingId.ToString()); model.CallbackUrl = shortNegoStatusUrl; //else // model.CallbackUrl = websiteBaseUrl + "NegoConfirmed/" + clsUtils.Encode(bookingId.ToString()); var html = this.RenderViewToString("_EmailTemplete", model); Task.Run(() => clsUtils.sendSMS(bookingDetails.MobileOFR, notificationSMS_User + model.CallbackUrl)); Task.Run(() => MailComponent.SendEmail(bookingDetails.EmailOFR, "", "", "Bargain Status", html, null, null, true, null, null)); return(1); } catch (Exception ex) { return(0); } }