public bool Delete(Guid branchId) { try { IGarageRepository repo = new GarageRepository(this.UserId); return(repo.Delete(branchId)); } catch (Exception ex) { throw new GarageSaleException("GarageSaleDeleteError", ex); } }
public ActionResult Delete(int?id, int?psi, string reg) { repo.Delete(id, psi, reg); return(RedirectToAction("DisplayOverview")); }