Beispiel #1
0
        public ActionResult Login(string returnUrl, string sPropId, string bookingId)
        {
            //var invoideDetail = BL_Invoice.GetInvoiceDetailByBooking(3220);
            //invoideDetail.sInvoiceNumber = invoideDetail.BookingId + "/" + "02" + (invoideDetail.cBookingStatus == "MD" ? "/MOD" : "");

            //invoideDetail.HotelOrGuest = HotelOrGuest.Hotel;

            //invoideDetail.IsGeneratingPdf = true;

            //var html_Customer = OneFineRateApp.App_Helper.EmailTempleteParser.RenderViewToString(this,"~/Views/Bookings/_Invoice.cshtml", invoideDetail);

            // SelectPdf.HtmlToPdf converter = new SelectPdf.HtmlToPdf();

            //SelectPdf.PdfDocument doc = converter.ConvertHtmlString(html_Customer);

            //using (System.IO.MemoryStream memoryStream = new System.IO.MemoryStream())
            //{
            //    doc.Save(memoryStream);
            //    byte[] bytes = memoryStream.ToArray();
            //    memoryStream.Close();

            //    var attachment = new System.Net.Mail.Attachment(new System.IO.MemoryStream(bytes), "Invoice#" + invoideDetail.BookingId + ".pdf");
            //    MailComponent.SendEmail("*****@*****.**", "*****@*****.**", "", "OneFineRate! Invoice# :" + invoideDetail.BookingId, html_Customer, attachment, null, true, new System.IO.MemoryStream(bytes), "Invoice#" + invoideDetail.BookingId + ".pdf");
            //}

            //doc.Close();

            ////////////////////////////////////////
            if (User.Identity.IsAuthenticated)
            {
                FormsAuthentication.SignOut();
                Session.Abandon();
            }
            eLogin model = new eLogin();

            model.sPropId    = sPropId;
            model.sBookingId = bookingId;

            ViewBag.ReturnUrl = returnUrl;
            return(View(model));
        }
Beispiel #2
0
 public List <ePessoaInteresse> Consultar(eLogin pessoa)
 {
     throw new NotImplementedException();
 }
Beispiel #3
0
 public eLogin Login(eLogin pessoa)
 {
     throw new NotImplementedException();
 }
Beispiel #4
0
 public void Desbloquear(eLogin pessoa)
 {
     throw new NotImplementedException();
 }
Beispiel #5
0
 public eMensagem Inativar(eLogin pessoa)
 {
     throw new NotImplementedException();
 }
Beispiel #6
0
 public eMensagem Bloquear(eLogin pessoa)
 {
     throw new NotImplementedException();
 }
Beispiel #7
0
 public ePessoa Consultar(eLogin pessoa)
 {
     throw new NotImplementedException();
 }
Beispiel #8
0
 public eMensagem Registrar(eLogin pessoa)
 {
     throw new NotImplementedException();
 }
Beispiel #9
0
 public List <ePessoaConvite> ListaConviteNaoEnviado(eLogin pessoa = null)
 {
     throw new NotImplementedException();
 }
Beispiel #10
0
 public List <ePessoaConvite> ListaConvite(eLogin pessoa)
 {
     throw new NotImplementedException();
 }