public ActionResult FindOjectCatalouge(string keysSearch, string options) { var lstOjects = new List <WikiCatalogues_Info>(); try { var ObjBL = new WikiCatalogue_BL(); lstOjects = ObjBL.WikiCata_Search(keysSearch, options); ViewBag.Paging = ObjBL.GetPagingHtml(); } catch (Exception ex) { Logger.LogException(ex); } return(PartialView("/Areas/Wiki/Views/Catalogue/_PartialCatalogueData.cshtml", lstOjects)); }
public ActionResult CatalogueList() { if (SessionData.CurrentUser == null) { return(Redirect("/account/dang-xuat")); } List <WikiCatalogues_Info> lstObj = new List <WikiCatalogues_Info>(); try { var ObjBL = new WikiCatalogue_BL(); lstObj = ObjBL.WikiCata_Search(); ViewBag.Paging = ObjBL.GetPagingHtml(); List <WikiCatalogues_Info> lstOjects = ObjBL.WikiCatalogueGetAll(); ViewBag.ListCata = lstOjects; } catch (Exception ex) { Logger.LogException(ex); } return(PartialView("/Areas/Wiki/Views/Catalogue/CatalogueList.cshtml", lstObj)); }