public async Task <IActionResult> Create(Item item) { if (ModelState.IsValid) { var storedItem = await _invoicesRepository.AddItemAsync(item); return(RedirectToAction("Details", "Invoices", new { id = item.InvoiceId })); } return(View(item)); }