Exemplo n.º 1
0
        public async Task <IActionResult> LeaveChat([FromRoute][ValidateGuid] string chatId)
        {
            var result = await _chatsService.LeaveChatAsync(chatId);

            if (!result)
            {
                return(NotFound(new ApiError("Chat not found", HttpStatusCode.NotFound)));
            }

            return(Ok());
        }