示例#1
0
 public ActionResult List()
 {
     try
     {
         var result = _newsBusiness.GetAll();
         return(View(result));
     }
     catch (Exception)
     {
         return(View());
     }
 }
示例#2
0
 public ActionResult News()
 {
     try
     {
         var result = _newsBusiness.GetAll();
         return(PartialView(result));
     }
     catch (Exception)
     {
         return(PartialView());
     }
 }