public IActionResult Delete(Guid idCurso) { DarDeBajaCursoModel model = new DarDeBajaCursoModel { IdCurso = idCurso, FechaDeBaja = DateTime.Now }; return(View(model)); }
public IActionResult Delete(DarDeBajaCursoModel model) { _servicio.DarDeBaja(model.IdCurso, model.FechaDeBaja); return(RedirectToAction("Index")); }