Lite justering , bort med ssl
This commit is contained in:
@ -71,9 +71,23 @@ namespace HPlusSportsAPI.Controllers
|
|||||||
}
|
}
|
||||||
|
|
||||||
_context.Entry(customer).State = EntityState.Modified;
|
_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]
|
[HttpPost]
|
||||||
|
|||||||
@ -3,15 +3,14 @@
|
|||||||
"windowsAuthentication": false,
|
"windowsAuthentication": false,
|
||||||
"anonymousAuthentication": true,
|
"anonymousAuthentication": true,
|
||||||
"iisExpress": {
|
"iisExpress": {
|
||||||
"applicationUrl": "http://localhost:50683",
|
"applicationUrl": "http://localhost:44368",
|
||||||
"sslPort": 44368
|
"sslPort": 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"$schema": "http://json.schemastore.org/launchsettings.json",
|
"$schema": "http://json.schemastore.org/launchsettings.json",
|
||||||
"profiles": {
|
"profiles": {
|
||||||
"IIS Express": {
|
"IIS Express": {
|
||||||
"commandName": "IISExpress",
|
"commandName": "IISExpress",
|
||||||
"launchUrl": "weatherforecast",
|
|
||||||
"environmentVariables": {
|
"environmentVariables": {
|
||||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user