public async Task <IActionResult> PutSalesPeople(int id, SalesPeople salesPeople)
        {
            if (id != salesPeople.Id)
            {
                return(BadRequest());
            }

            _context.Entry(salesPeople).State = EntityState.Modified;

            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!SalesPeopleExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }
        public async Task <IActionResult> PutDiscounts(int id, Discounts discounts)
        {
            if (id != discounts.Id)
            {
                return(BadRequest());
            }

            _context.Entry(discounts).State = EntityState.Modified;

            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!DiscountsExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }