コード例 #1
0
        public ActionResult Edit(Docente docente, int id, FormCollection collection)
        {
            try
            {
                // TODO: Add update logic here

                if (ModelState.IsValid)
                {
                    _docenteService.EditarDocente(docente);


                    return(RedirectToAction("Index"));
                }
                return(View(docente));
            }
            catch
            {
                return(View());
            }
        }
コード例 #2
0
ファイル: DocenteController.cs プロジェクト: jonaav/Overseas5
        public IActionResult EditarDocente(Docente docente, List <Especialidad> especialidades)
        {
            var mensaje = _docenteService.EditarDocente(docente, especialidades);

            return(Json(mensaje));
        }