Exemplo n.º 1
0
 public ActionResult Edit([Bind(Include = "Id,Video,Text,Timestamp,Speaker")] Podcast.Models.Podcast podcast)
 {
     if (ModelState.IsValid)
     {
         db.Entry(podcast).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(podcast));
 }
Exemplo n.º 2
0
 public ActionResult Edit([Bind(Include = "Id,LikeId,NumberOfLikes")] Likes likes)
 {
     if (ModelState.IsValid)
     {
         db.Entry(likes).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(likes));
 }