public ActionResult Index()
        {
            var             repository = new InvoiceRepo(context);
            IList <Invoice> invoices   = repository.GetInvoices();

            return(View("Index", invoices));
        }
예제 #2
0
        public IEnumerable <Invoice> GetInvoices()
        {
            var list = repo.GetInvoices();

            return(list);
        }
예제 #3
0
    public List <Invoice> GetInvoices()
    {
        var list2 = repo.GetInvoices();

        return(list2);
    }