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 Ok(result.locations);
|
||||||
}
|
}
|
||||||
return NotFound();
|
return NoContent();
|
||||||
|
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -78,9 +78,9 @@ namespace DamageAssesment.Api.Locations.Controllers
|
|||||||
{
|
{
|
||||||
return Ok(result.Question);
|
return Ok(result.Question);
|
||||||
}
|
}
|
||||||
return NotFound();
|
return BadRequest();
|
||||||
}
|
}
|
||||||
return CreatedAtRoute("DefaultApi", new { id = Location.Id }, Location);
|
return BadRequest();
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Delete an existing location.
|
/// Delete an existing location.
|
||||||
|
Reference in New Issue
Block a user