Example #1
0
        public ActionResult EditarCd(ArtistaModel interprete)
        {
            db.Entry(interprete).State = System.Data.Entity.EntityState.Modified;
            db.SaveChanges();

            return(RedirectToAction("Index"));
        }
Example #2
0
        public ActionResult CadastrarCd(ArtistaModel interprete)

        {
            db.Artistadb.Add(interprete);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }