Progresss
This commit is contained in:
@@ -61,9 +61,9 @@ namespace KTUSAPS.Controllers
|
||||
}
|
||||
|
||||
[HttpPatch("{id}")]
|
||||
[ProducesResponseType(StatusCodes.Status204NoContent)]
|
||||
[ProducesResponseType(StatusCodes.Status200OK)]
|
||||
[ProducesResponseType(StatusCodes.Status404NotFound)]
|
||||
public async Task<IActionResult> UpdatePublishedFeedback(int id, PublishedFeedback publishedFeedback)
|
||||
public async Task<ActionResult<PublishedFeedback>> UpdatePublishedFeedback(int id, PublishedFeedback publishedFeedback)
|
||||
{
|
||||
var databasePublishedFeedback = await _context.PublishedFeedbacks.FindAsync(id);
|
||||
if (databasePublishedFeedback == default)
|
||||
@@ -81,7 +81,7 @@ namespace KTUSAPS.Controllers
|
||||
|
||||
await _context.SaveChangesAsync();
|
||||
|
||||
return NoContent();
|
||||
return Ok(ePublishedFeedback.Entity);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user