Example #1
0
        // GET: MakeController/Details/5
        public async Task <ActionResult> Details(int id)
        {
            var make = await _repo.FindById(id);

            var model = _mapper.Map <Make, MakeVM>(make);

            if (model == null)
            {
                return(NotFound());
            }
            return(View(model));
        }