Exemplo n.º 1
0
        public async Task <IActionResult> DeleteMessageReplyAsync(int replyId)
        {
            if (!await messagesRepository.IsMessageReplyUserAsync(replyId, int.Parse(User.Identity.Name)))
            {
                return(BadRequest());
            }

            await messagesRepository.DeleteMessageReplyAsync(replyId);

            return(Ok());
        }