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

            _pagesService.Update(id, updatedEntity);
        }