// GET: Deal/Delete/5 public ActionResult Delete(int id) { try { DealRepository repository = new DealRepository(); repository.Delete(id); return(RedirectToAction("GetAll")); } catch { return(View()); } }
public bool Delete(int id) { return(_dealRepository.Delete(id)); }