コード例 #1
0
        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"));
        }
コード例 #2
0
 public ActionResult Add(ComChannel a)
 {
     db.ComChannels.Add(a);
     db.SaveChanges();
     return(RedirectToAction("Index"));
 }