public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } MechanicViewModel mechanic = _mechanicManager.GetMechanic(id); if (mechanic == null) { return(HttpNotFound()); } return(View(mechanic)); }
public ActionResult DetailsMechanic(int id) { var Mechanic = _MechanicManager.GetMechanic(id); return(View(Mechanic)); }