Ejemplo n.º 1
0
 public ViewResult Index()
 {
     if (HttpContext.Session.GetString("Admin") != null)
     {
         var orderModel = new OrderModel();
         ViewData["earn-month"] = Functions.FormatPrice(orderModel.EarnMonth());
         ViewData["earn-anual"] = Functions.FormatPrice(orderModel.EarnYear());
         ViewData["pending"]    = orderModel.Pending();
         ViewData["shipping"]   = orderModel.Shipping();
         return(View("Index"));
     }
     else
     {
         return(View("Login"));
     }
 }