public ActionResult Delete(Ingrediente model, IFormCollection collection) { if (model == null) { return(NotFound()); } var pack = repo.LeerPorPKRK(model.Nombre, model.OtraCosa); try { System.Threading.Thread.Sleep(1000); var resultado = repo.BorrarIngrediente(model); System.Threading.Thread.Sleep(1000); return(RedirectToAction(nameof(Index))); } catch { return(View()); } }