Skip to content

Commit

Permalink
reslove problem
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammadreza-sz committed Dec 29, 2023
1 parent 0c096c5 commit 016662c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/VakilPors/VakilPors.Web/Controllers/ReportController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public async Task<IActionResult> GetAll()
return Ok(new AppResponse<object>(result, "success"));
}
[HttpPost]
[Authorize]
public async Task<IActionResult> PostReport([FromBody] PostReportDto postReportDto)
{
var result =await _reportservice.PostReport(postReportDto);
Expand Down Expand Up @@ -60,7 +61,7 @@ public async Task<IActionResult> DeleteReport(int report_id)
}
}
[HttpPatch("/Report/status/{id}")]
public async Task<IActionResult> UpdateStatus(int id, Status status)
public async Task<IActionResult> UpdateStatus(int id, [FromBody]Status status)
{
var updatedReport = await _reportservice.UpdateReportStatusAsync(id, status);
return Ok(updatedReport);
Expand Down

0 comments on commit 016662c

Please # to comment.