public IActionResult Vende()
 {
     if (User.Identity.IsAuthenticated)
     {
         try
         {
             if (Request.Cookies["CC"].ToString().Equals("No"))
             {
                 ViewBag.pendiente = true;
                 Response.Cookies.Append("IC", "1");
             }
             else
             {
                 ViewBag.pendiente = false;
             }
         }
         catch
         {
             Response.Cookies.Append("CC", "No");
             Response.Cookies.Append("IC", "1");
             ViewBag.pendiente = true;
         }
         try
         {
             ViewBag.saldoactual = Convert.ToDouble(data.GetBalanceCia(Request.Cookies["IC"].ToString())).ToString("0.00");
         }
         catch
         {
             ViewBag.saldoactual = "0.00";
         }
         return(View());
     }
     else
     {
         return(RedirectToAction("Index", "Home"));
     }
 }