// --------------------------------------------------- // Index Page // --------------------------------------------------- public ActionResult Index() { ViewBag.logo = configModel.LogoUrl; ViewBag.companyName = configModel.CompanyName; var homepageSEOModel = _otherPageSeoService.Get(o => o.Page == "HomePage"); ViewBag.Keyword = homepageSEOModel.Keyword; ViewBag.Description = homepageSEOModel.Description; ViewBag.MetaData = homepageSEOModel.MetaData; return(View()); }
public ActionResult List(int page = 1) { var otherPageSEOModel = _otherPageSeoService.Get(o => o.Page == "Construction"); ViewBag.Keyword = otherPageSEOModel.Keyword; ViewBag.Description = otherPageSEOModel.Description; ViewBag.MetaData = otherPageSEOModel.MetaData; var ConstructionVM = new ConstructionVM(); ConstructionVM.PagingItems = _newsService.Page(n => n.ProjectId == 16 && n.Status == true && n.Deleted == false, n => n.ZOrder, page, ItemPerPage, true); ConstructionVM.News = ConstructionVM.PagingItems.Entities; return(View(ConstructionVM)); }
public ActionResult List(int page = 1) { var otherPageSEOModel = _otherPageSeoService.Get(o => o.Page == "Video"); ViewBag.Keyword = otherPageSEOModel.Keyword; ViewBag.Description = otherPageSEOModel.Description; ViewBag.MetaData = otherPageSEOModel.MetaData; var VideoVM = new VideoVM(); VideoVM.PagingItems = _projectImageService.Page(p => p.Status == true && p.Deleted == false && p.Type == 2, p => p.ZOrder, page, ItemPerPage, true); VideoVM.ProjectImages = VideoVM.PagingItems.Entities; return(View(VideoVM)); }