// GET: Dealership/Delete/5 public async Task <IActionResult> Delete(int id) { var dealership = DealershipMgr.GetDealership(id); if (dealership == null) { return(NotFound()); } return(View(dealership)); }
public Dealership GetDealership(int id) { var dealership = _context.GetDealership(id); if (dealership == null) { return(null); } return(dealership); }
public Dealership Get(int id) { return(DealershipMgr.GetDealership(id)); }
public Dealership Get(int id) { return(_context.GetDealership(id)); }