示例#1
0
        // GET: ProductTypeController
        public ActionResult Index()
        {
            var productTypeValue = _repo.FindAll().ToList();
            var model            = _mapper.Map <List <ProductType>, List <ProductTypeViewModel> >(productTypeValue);

            return(View(model));
        }