Ejemplo n.º 1
0
        public ActionResult _Footer(FooterClientViewModels model)
        {
            var footer = _footerClientService.ListAll();

            model = new FooterClientViewModels(footer);
            return(PartialView(model));
        }
Ejemplo n.º 2
0
        public ActionResult Index()
        {
            var footer = _footerClientService.ListAll();

            FooterClientViewModels model = new FooterClientViewModels(footer);


            return(View(model));
        }
Ejemplo n.º 3
0
        public ActionResult Index(FooterClientViewModels model)
        {
            var footer = new Footer()
            {
                Id      = model.Id,
                Content = model.Content,
            };
            var result = _footerClientService.Update(footer);

            if (result == true)
            {
                return(RedirectToAction("Index"));
            }
            return(View());
        }