public IActionResult GenerateInvoice() { string json = SessionExtensions.GetRawJSON(HttpContext.Session, "Cart"); new CartInfoSender().SendMessage(json); HttpContext.Session.Clear(); return(View("InvoiceGenerated")); }