public ActionResult CategoryPostList(string CategoryName) { HomeLayoutDTO layoutdto = new HomeLayoutDTO(); layoutdto = layoutbll.GetLayoutData(); ViewData["LayoutDTO"] = layoutdto; GeneralDTO dto = new GeneralDTO(); dto = bll.GetCategoryPostList(CategoryName); return(View(dto)); }
public ActionResult CategoryPostList(string categoryName) { HomeLayoutDTO layoutDTO = new HomeLayoutDTO(); layoutDTO = layoutBLL.GetLayoutData(); ViewData["LayoutDTO"] = layoutDTO; GeneralDTO dto = new GeneralDTO(); dto = generalBLL.GetCategoryPostList(categoryName); return(View(dto)); }