Lite justering , bort med ssl

This commit is contained in:
2019-12-17 23:53:04 +01:00
parent 7df0f07d15
commit 5e4da3d966
2 changed files with 18 additions and 5 deletions

View File

@ -71,9 +71,23 @@ namespace HPlusSportsAPI.Controllers
}
_context.Entry(customer).State = EntityState.Modified;
try
{
await _context.SaveChangesAsync();
return Ok(customer);
await _context.SaveChangesAsync();
return Ok(customer);
}
catch (DbUpdateConcurrencyException )
{
if (!CustomerExists(id))
{
return NotFound();
}
else
{
throw;
}
}
}
[HttpPost]