Пример #1
0
        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));
        }
Пример #2
0
        public ActionResult DetailsMechanic(int id)
        {
            var Mechanic = _MechanicManager.GetMechanic(id);

            return(View(Mechanic));
        }