// GET: Deal/Delete/5
        public ActionResult Delete(int id)
        {
            try
            {
                DealRepository repository = new DealRepository();
                repository.Delete(id);

                return(RedirectToAction("GetAll"));
            }
            catch
            {
                return(View());
            }
        }
示例#2
0
 public bool Delete(int id)
 {
     return(_dealRepository.Delete(id));
 }