public async Task AcceptDraw(RequestAcceptDraw request) { if (!request.Accept) { return; } BaseResponse <BaseResult> check = await CheckGamePlayRequest(request); if (!check.OK) { return; } Board board = GetBoard(request.BoardId); await Draw(board, "Hai bên đồng ý HÒA"); return; }
public async Task RequestAcceptDraw(RequestAcceptDraw request) { request.ConnectionId = Context.ConnectionId; await _service.AcceptDraw(request); }