public async Task <IActionResult> Edit(int id, [Bind("Id, Invoiced, StaffAccountId, UserAccountId")] Invoice invoice)
        {
            if (id != invoice.Id)
            {
                return(NotFound());
            }

            //need to alter the staff account to whoever invoiced it

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(invoice);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!InvoiceExists(invoice.Id))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
            }

            InvoicesDTO invoices = new InvoicesDTO
            {
                Id             = invoice.Id,
                Invoiced       = invoice.Invoiced,
                StaffAccountId = invoice.StaffAccountId,
                UserAccountId  = invoice.UserAccountId
            };

            try
            {
                var response = await _invoicesService.PushInvoices(invoices);
            }
            catch (Exception e)
            {
                //_logger.LogWarning(e);
            }

            return(RedirectToAction(nameof(Index)));
        }