public ActionResult ProcessCancellation(HotelBookingCancelModel model)
        {
            HotelBookingCancelRepository _rep   = new HotelBookingCancelRepository();
            HotelBookingCancelModel      _model = new HotelBookingCancelModel();

            _model = _rep.GetCancelRequestStatus(model.BookingCancelId);
            GeneralRepository gProvider        = new GeneralRepository();
            TravelSession     sessionObj       = (TravelSession)System.Web.HttpContext.Current.Session["TravelSessionInfo"];
            string            ReservationEmail = System.Configuration.ConfigurationManager.AppSettings["ReservationEmail"];
            var    agent   = gProvider.GetAgentInfo(ATLTravelPortal.Repository.GeneralRepository.LoggedUserId());
            string subject = "Hotel Booking Cancilation Status # Ref No : " + _model.BookingDetail.BookingRecordId + "#" + _model.BookingDetail.BookingId + "#" + _model.BookingDetail.ConfirmationNo + "#" + _model.BookingDetail.ReferenceNo + "|" + _model.BookingDetail.HotelName + ", " + _model.BookingDetail.CityName + ", " + _model.BookingDetail.CountryName;

            HotelGeneralRepository.sendEmial(agent.Email, ReservationEmail, "", subject, subject, "HTML", "");
            return(View(_model));
        }
        public ActionResult EmailItinerary(long?id, string emal)
        {
            HotelBookingRecordRepository _rep   = new HotelBookingRecordRepository();
            HotelItinearyModel           _model = new HotelItinearyModel();
            HotelMessageModel            _msg   = new HotelMessageModel();

            if (ATLTravelPortal.Areas.Hotel.Repository.HotelGeneralRepository.ValidateEmail(emal) == false)
            {
                _msg.ActionMessage = "Invalid Email address.";
                _msg.MsgNumber     = 1001;
                _msg.MsgStatus     = true;
                _msg.MsgType       = 3;
                _model.Message     = _msg;
            }
            else
            {
                _model = _rep.Itineary(id);
                if (_model.Message.MsgNumber == 1)
                {
                    List <string> emailList = new List <string>();
                    emailList.Add(emal);
                    if (_model.Itineary.GuestEmail != emal)
                    {
                        emailList.Add(_model.Itineary.GuestEmail);
                    }
                    string body = RenderPartialViewToString("Common/VUC_Itinerary", _model);
                    //use ohter way to send email.
                    string subject = "Hotel Booking Itinerary Ref No : " + _model.BookingRecordId + "#" + _model.Itineary.BookingId + "#" + _model.Itineary.ConfirmationNo + "# " + _model.Itineary.HotelName + ", " + _model.Itineary.CityName + ", " + _model.Itineary.CountryName;
                    HotelGeneralRepository.sendEmial(emal, "", "", subject, body, "HTML", "");
                    _msg.ActionMessage = "Itinerary has been sent.";
                    _msg.MsgNumber     = 1;
                    _msg.MsgStatus     = true;
                    _msg.MsgType       = 0;
                    _model.Message     = _msg;
                }
            }
            return(PartialView("Utility/VUC_Message", _model.Message));
        }