public ActionResult Update(ComChannel a) { var content = db.ComChannels.Find(a.ComChannelID); content.Title_EN = a.Title_EN; content.Link = a.Link; content.Symbol = a.Symbol; db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Add(ComChannel a) { db.ComChannels.Add(a); db.SaveChanges(); return(RedirectToAction("Index")); }