Ejemplo n.º 1
0
        public void AddControlForUsefulInformation(SimplePageVM model)
        {
            var usefulInformation = UsefulInformationService.GetAll().IsActive()
                                    .OrderBy(a => a.UpdateDate);

            model.Controls.Add(
                new SimplePageVM.Control(PartialViewNames.UsefulInformation,
                                         usefulInformation.ToList()));
        }
Ejemplo n.º 2
0
        public ActionResult UsefulInformation(string urlName)
        {
            var usefulInformation = UsefulInformationService.GetAll().ByUrlName(urlName);

            return(View(new UsefulInformationVM {
                UsefulInfo = usefulInformation,
                UsefulInformation =
                    SimplePageService.GetAll().BySysName(SimplePages.UsefulInformation)
            }));
        }