Ejemplo n.º 1
0
        private async Task DeleteComment(CommentResponse commentResponse)
        {
            await _commentsService.DeleteCommentAsync(commentResponse.Comment.Id);

            _userDialogs.Alert(message: "Удаление произведено успешно", okText: "OK");
            await RequestComments(InitComment.Comment.Id);
        }
Ejemplo n.º 2
0
        public async Task <IActionResult> RemoveCommentAsync(
            int id, int projectId, int commentId)
        {
            var result = await comments.DeleteCommentAsync(commentId, User);

            this.AddNotification(result.Message, result.NotificationType);

            return(RedirectToAction("Edit", "Issues", new { projectId, id }));
        }
        public async Task <IActionResult> Delete(string id)
        {
            await _commentsService.DeleteCommentAsync(id);

            return(NoContent());
        }
Ejemplo n.º 4
0
        public async Task <JsonResult> DeleteComment(int id)
        {
            await _commentsService.DeleteCommentAsync(id);

            return(Json(OkReturnString));
        }