public ActionResult Delete(int id, IFormCollection collection) { try { _carroService.Delete(id); return(RedirectToAction(nameof(Index))); } catch { return(View()); } }
public ActionResult Delete(int id, IFormCollection collection) { try { _carroService.Delete(id); return(RedirectToAction(nameof(Index))); } catch { return(View()); } }