diff --git a/DamageAssesmentApi/DamageAssesment.Api.Locations/Controllers/LocationsController.cs b/DamageAssesmentApi/DamageAssesment.Api.Locations/Controllers/LocationsController.cs index 0ee489a..d919c07 100644 --- a/DamageAssesmentApi/DamageAssesment.Api.Locations/Controllers/LocationsController.cs +++ b/DamageAssesmentApi/DamageAssesment.Api.Locations/Controllers/LocationsController.cs @@ -27,7 +27,7 @@ namespace DamageAssesment.Api.Locations.Controllers { return Ok(result.locations); } - return NotFound(); + return NoContent(); } /// @@ -78,9 +78,9 @@ namespace DamageAssesment.Api.Locations.Controllers { return Ok(result.Question); } - return NotFound(); + return BadRequest(); } - return CreatedAtRoute("DefaultApi", new { id = Location.Id }, Location); + return BadRequest(); } /// /// Delete an existing location.