コード例 #1
0
 //İSHAK ABİNİN YAPTIĞI ÇÖZÜM - ADMİNNEWS' NEWSCREATE&NEWSUPDATE ..
 //sayfa içeriği güncelleme
 public ActionResult ContentUpdate(int id)
 {
     if (Convert.ToInt32(Session["RolId"].ToString()) == 1)
     {
         Pages page = _pagesService.Get(id);
         vmAdminContentContentUpdate model = new vmAdminContentContentUpdate();
         model.ContentText   = page.ContentText;
         model.ContentTextEN = page.ContentTextEN;
         model.Id            = page.Id;
         model.Name          = page.Name;
         model.NameEN        = page.NameEN;
         model.Title         = page.Title;
         model.TitleEN       = page.TitleEN;
         return(View(model));
     }
     else
     {
         return(RedirectToAction("News", "News"));
     }
 }