forked from MDCPS/DamageAssessment_Backend
Update on the controller for NoContent return type
This commit is contained in:
@ -27,7 +27,7 @@ namespace DamageAssesment.Api.Locations.Controllers
|
||||
{
|
||||
return Ok(result.locations);
|
||||
}
|
||||
return NotFound();
|
||||
return NoContent();
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
@ -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();
|
||||
}
|
||||
/// <summary>
|
||||
/// Delete an existing location.
|
||||
|
Reference in New Issue
Block a user