public async Task <IActionResult> Delete(UserProfileCommentDeleteViewModel viewModel) { UserProfileComment comment = await userProfileCommentService.GetByIDAsync(viewModel.UserProfileComment.ID); if (comment == null) { return(NotFound()); } await userProfileCommentService.DeleteAsync(comment.ID); return(View()); }
public async Task Delete(int id) { await userProfileCommentService.DeleteAsync(id); }