This commit is contained in:
mmrbnjd
2025-07-29 00:00:16 +03:30
parent ea152671d6
commit cb8e8146b5
6 changed files with 281 additions and 8 deletions

View File

@@ -93,5 +93,12 @@ namespace Hushian.WebApi.Controllers.v1
return Response.Success ? Ok(Response.Value)
: BadRequest(Response.Errors);
}
[HttpGet("ChatIsFinish/{ChatID}")]
[Authorize(Roles = "Company,Exper")]
public async Task<ActionResult> ChatIsFinish(int ChatID)
{
return await _chatService.FinishChat(ChatID) ? NoContent()
: BadRequest(new List<string> { "خطا در بروزرسانی وضعیت" });
}
}
}