Exemplo n.º 1
0
        public ActionResult AddWriter(TBL_WRITER writer)
        {
            db.TBL_WRITER.Add(writer);
            db.SaveChanges();

            return(View());
        }
Exemplo n.º 2
0
        public ActionResult WriterUpdate(TBL_WRITER writer)
        {
            var Tempwriter = db.TBL_WRITER.Find(writer.id);

            Tempwriter.id          = writer.id;
            Tempwriter.writer_name = writer.writer_name;

            db.SaveChanges();

            return(RedirectToAction("Index"));
        }