Пример #1
0
 public ActionResult Edit([Bind(Include = "Banner1,Title,Sut_title,Text,Banner_photo_url,Last_updata_date")] Banner banner)
 {
     if (ModelState.IsValid)
     {
         //db.Entry(banner).State = EntityState.Modified;
         //db.SaveChanges();
         BannerService service = new BannerService();
         var           result  = service.Edit(banner);
         if (result.IsSuccessful)
         {
             return(RedirectToAction("Index"));
         }
     }
     return(View(banner));
 }