예제 #1
0
        public async Task <ActionResult> Create()
        {
            Invoice       invoice = new Invoice();
            List <Client> clients = await clientDA.GetClients();

            List <Company> companies = await companyDA.GetCompanies();

            return(View(new InvoiceClientsCompanies()
            {
                Invoice = invoice, Clients = clients, Companies = companies
            }));
        }