示例#1
0
        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());
        }
示例#2
0
 public async Task Delete(int id)
 {
     await userProfileCommentService.DeleteAsync(id);
 }