public ActionResult SaleDetail()
        {
            if (Session["UserId"] == null)
            {
                return(RedirectToAction("Login", "User"));
            }
            SaleViewModel saleviewmodel = new SaleViewModel();

            if (Session["UserId"] != null && (string)Session["Role"] == "Admin")
            {
                ViewBag.SetLayout = "~/Views/Shared/_Layout.cshtml";
            }
            else
            {
                saleviewmodel.BillNo      = _saleService.ExecuteSp();
                saleviewmodel.CreatedDate = System.DateTime.Now;
                ViewBag.Items             = _itemService.GetAll();
                ViewBag.Parties           = _partyService.GetAll();
                ViewBag.taxes             = _taxService.GetAll();
                ViewBag.SetLayout         = "~/Views/Shared/_UserLayout.cshtml";
            }

            return(View(saleviewmodel));
        }