コード例 #1
0
        public ActionResult Edit(AutorViewModel autorVW)
        {
            try
            {
                AutorCEN autorCEN = new AutorCEN();
                autorCEN.Modify(autorVW.autorID, autorVW.nombre, autorVW.numlibros, autorVW.nacimiento, autorVW.fotoautor);

                return(RedirectToAction("Index", new { id = autorVW.autorID }));
            }
            catch
            {
                return(View());
            }
        }
コード例 #2
0
ファイル: AutorController.cs プロジェクト: xals1997/DAW
        public ActionResult Edit(Autor au)
        {
            try
            {
                AutorCEN cen = new AutorCEN();
                cen.Modify(au.id, au.Ganancias, au.Email, au.Fecha, au.Nombre);
                // TODO: Add update logic here

                return(RedirectToAction("Index"));
            }
            catch
            {
                return(View());
            }
        }