private async Task DeleteComment(CommentResponse commentResponse) { await _commentsService.DeleteCommentAsync(commentResponse.Comment.Id); _userDialogs.Alert(message: "Удаление произведено успешно", okText: "OK"); await RequestComments(InitComment.Comment.Id); }
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()); }
public async Task <JsonResult> DeleteComment(int id) { await _commentsService.DeleteCommentAsync(id); return(Json(OkReturnString)); }