public ActionResult Run([Bind(Include = "ID")] Channel channel) { Channel c = db.Channels.Find(channel.ID); c.Instantrun = !c.Instantrun; db.Entry(c).State = EntityState.Modified; db.SaveChanges2noDate(); return(RedirectToAction("Index")); }
public ActionResult Run([Bind(Include = "ID")] Channel channel) { Channel c = db.Channels.Find(channel.ID); c.Instantrun = !c.Instantrun; db.Entry(c).State = EntityState.Modified; db.SaveChanges2noDate(); return(RedirectToAction("Index")); }