public void Delete(int id) { var argument = _argumentService.GetById(id); _argumentService.Delete(id); _slugService.Delete(argument.slugId); }
public void Delete(int id) { var category = _categoryService.GetById(id); _categoryService.Delete(id); _slugService.Delete(category.slugId); }
public void Delete(int id) { var post = _postService.GetById(id); _postService.Delete(id); _slugService.Delete(post.slugId); if (post.albumId > 0) { _albumService.Delete(post.albumId); } }