Exemplo n.º 1
0
        public async Task <ActionResult> ApproveComment(long id)
        {
            try
            {
                await repository.ApproveCommentAsync(id);

                return(Ok());
            }
            catch (System.Exception)
            {
                return(NotFound(id));
            }
        }