public async Task <ActionResult <AssociateLocation> > PostAssociateLocation(AssociateLocation AssociateLocation)
        {
            _dbContext.AssociateLocation.Add(AssociateLocation);
            await _dbContext.SaveChangesAsync();

            return(CreatedAtAction("GetAssociateLocation", new { key = AssociateLocation.AssociateLocationKey }, AssociateLocation));
        }
        public async Task <IActionResult> PutAssociateLocation(Guid key, AssociateLocation AssociateLocation)
        {
            if (key != AssociateLocation.AssociateLocationKey)
            {
                return(BadRequest());
            }

            _dbContext.Entry(AssociateLocation).State = EntityState.Modified;

            try
            {
                await _dbContext.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!AssociateLocationExists(key))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }