// GET: InvoiceController public ActionResult Index() { var invoices = _repo.FindAll().ToList(); var model = _mapper.Map <List <Invoice>, List <InvoiceVM> >(invoices); return(View(model)); }