Esempio n. 1
0
        // GET: PurchaseController
        public ActionResult Index()
        {
            var purchase = _repo.FindAll().ToList();
            var model    = _mapper.Map <List <Purchase>, List <PurchaseViewModel> >(purchase);

            return(View(model));
        }
Esempio n. 2
0
        // GET: Home
        public IActionResult Index()
        {
            var purchases = _prepo.FindAll().ToList();
            var model     = _mapper.Map <List <PurchaseDetailsVM> >(purchases);

            return(View(model));
        }