示例#1
0
 public ActionResult Banner()
 {
     try
     {
         var result = _bannerBusiness.GetAll();
         return(PartialView(result.Where(x => x.Status == true)));
     }
     catch (Exception)
     {
         return(PartialView());
     }
 }
 public ActionResult List()
 {
     try
     {
         var result = _bannerBusiness.GetAll();
         return(View(result));
     }
     catch (Exception)
     {
         return(View());
     }
 }
示例#3
0
 public ActionResult Slider()
 {
     try
     {
         var result = _bannerBusiness.GetAll();
         return(PartialView(result));
     }
     catch (Exception)
     {
         return(PartialView());
     }
 }