...
This commit is contained in:
@@ -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> { "خطا در بروزرسانی وضعیت" });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user