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)); }
public List <ePessoaInteresse> Consultar(eLogin pessoa) { throw new NotImplementedException(); }
public eLogin Login(eLogin pessoa) { throw new NotImplementedException(); }
public void Desbloquear(eLogin pessoa) { throw new NotImplementedException(); }
public eMensagem Inativar(eLogin pessoa) { throw new NotImplementedException(); }
public eMensagem Bloquear(eLogin pessoa) { throw new NotImplementedException(); }
public ePessoa Consultar(eLogin pessoa) { throw new NotImplementedException(); }
public eMensagem Registrar(eLogin pessoa) { throw new NotImplementedException(); }
public List <ePessoaConvite> ListaConviteNaoEnviado(eLogin pessoa = null) { throw new NotImplementedException(); }
public List <ePessoaConvite> ListaConvite(eLogin pessoa) { throw new NotImplementedException(); }