Exemple #1
0
 public ActionResult ContentUpdate(Pages page)
 {
     if (Convert.ToInt32(Session["RolId"].ToString()) == 1)
     {
         _pagesService.Update(page);
     }
     return(RedirectToAction("PageList", "Content"));
 }
        public void Update(int id, FullPageViewModel page)
        {
            var updatedEntity = GenericMapper.MapObject <Page>(page);

            _pagesService.Update(id, updatedEntity);
        }