Beispiel #1
0
 public ActionResult Index()
 {
     if (Session["isLoginAdmin"] != null && bool.Parse(Session["isLoginAdmin"].ToString()) == true)
     {
         ViewBag.ProductList = ProductAPIController.GetTopProduct("New");
         ViewBag.Size        = ViewBag.ProductList.Count;
         return(View());
     }
     else
     {
         return(Redirect("/Admin/Login"));
     }
 }
 public ActionResult Index()
 {
     ViewBag.ProductList = ProductAPIController.GetTopProduct("New");
     ViewBag.Size        = ViewBag.ProductList.Count;
     return(View());
 }