Example #1
0
 public List <CMS_News_LayTinBaiCongKhaiTheoCateKey_Result> LayTinBaiCongKhaiTheoCateKey(string strCateKey)
 {
     try
     {
         return(MyContext.CMS_News_LayTinBaiCongKhaiTheoCateKey(strCateKey).ToList());
     }
     catch (Exception ex)
     {
         Logs.WriteLog(ex);
         throw;
     }
 }
Example #2
0
 public PartialViewResult TinTrangChu()
 {
     try
     {
         CSF_MVCEntities MyContext = new CSF_MVCEntities();
         var             news      = MyContext.CMS_News_LayTinBaiCongKhaiTheoCateKey("tin-hoat-dong").Take(3).ToList();
         return(PartialView(news));
     }
     catch (Exception ex)
     {
         Logs.WriteLog(ex);
         return(PartialView());
     }
 }