public IHttpActionResult Get(int id) { var response = _dealerManager.GetDealer(id); if (response == null) { return(InternalServerError()); } return(Ok(response)); }
public ActionResult DetailsDealer(int id) { var Dealer = _DealerManager.GetDealer(id); return(View(Dealer)); }