Lite justering , bort med ssl
This commit is contained in:
@ -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]
|
||||
|
||||
Reference in New Issue
Block a user