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