public ActionResult Index() { var repository = new InvoiceRepo(context); IList <Invoice> invoices = repository.GetInvoices(); return(View("Index", invoices)); }
public IEnumerable <Invoice> GetInvoices() { var list = repo.GetInvoices(); return(list); }
public List <Invoice> GetInvoices() { var list2 = repo.GetInvoices(); return(list2); }