Exemple #1
0
        // GET: ProductTypeController/Details/5
        public ActionResult Details(int id)
        {
            if (!_repo.IsExists(id))
            {
                return(NotFound());
            }
            var productType = _repo.Find(id);
            var model       = _mapper.Map <ProductTypeViewModel>(productType);

            return(View(model));
        }