// GET: ProductTypeController public ActionResult Index() { var productTypeValue = _repo.FindAll().ToList(); var model = _mapper.Map <List <ProductType>, List <ProductTypeViewModel> >(productTypeValue); return(View(model)); }