public void AddControlForUsefulInformation(SimplePageVM model) { var usefulInformation = UsefulInformationService.GetAll().IsActive() .OrderBy(a => a.UpdateDate); model.Controls.Add( new SimplePageVM.Control(PartialViewNames.UsefulInformation, usefulInformation.ToList())); }
public ActionResult UsefulInformation(string urlName) { var usefulInformation = UsefulInformationService.GetAll().ByUrlName(urlName); return(View(new UsefulInformationVM { UsefulInfo = usefulInformation, UsefulInformation = SimplePageService.GetAll().BySysName(SimplePages.UsefulInformation) })); }