Update on the controller for NoContent return type
This commit is contained in:
parent
cd261a5556
commit
5a4dda12ff
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user