Progresss
This commit is contained in:
@@ -58,11 +58,11 @@ namespace KTUSAPS.Controllers
|
||||
if (issueType == null)
|
||||
return NotFound();
|
||||
|
||||
return issueType;
|
||||
return Ok(issueType);
|
||||
}
|
||||
|
||||
[HttpPatch("{id}")]
|
||||
[ProducesResponseType(StatusCodes.Status204NoContent)]
|
||||
[ProducesResponseType(StatusCodes.Status200OK)]
|
||||
[ProducesResponseType(StatusCodes.Status404NotFound)]
|
||||
public async Task<IActionResult> UpdateIssueType(int id, IssueType issueType)
|
||||
{
|
||||
@@ -79,7 +79,7 @@ namespace KTUSAPS.Controllers
|
||||
|
||||
await _context.SaveChangesAsync();
|
||||
|
||||
return NoContent();
|
||||
return Ok(eIssueType.Entity);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user