public IActionResult Edit(int id, [Bind("SaleID,SaleTotal,DateEntered,SaleDate")] Sale sale)
        {
            if (id != sale.SaleID)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    saleRepo.EditSale(sale);
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!SaleExists(sale.SaleID))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(sale));
        }