public async Task<IActionResult> EditStore(int businessEntityID, [FromBody] Sales.Store value)
        {
            var existing = await _db.Sales_Store.FirstOrDefaultAsync(x => x.BusinessEntityID == businessEntityID);
            if (existing == null)
            {
                return NotFound();
            }

			existing.BusinessEntityID = value.BusinessEntityID;
			existing.Name = value.Name;
			existing.SalesPersonID = value.SalesPersonID;
			existing.Demographics = value.Demographics;
			existing.rowguid = value.rowguid;
			existing.ModifiedDate = value.ModifiedDate;

            _db.Sales_Store.Update(existing);
            await _db.SaveChangesAsync();
            return NoContent();
        }
 public async Task<IActionResult> CreateStore([FromBody] Sales.Store value)
 {
     _db.Sales_Store.Add(value);
     await _db.SaveChangesAsync();
     return Ok(value);
 }