public async Task RemoveFromCategoryAsync(CategoryBlogDTO categoryBlogDTO) { var categoryBlog = await _categoryBlogDAL.GetAsync(x => x.BlogId == categoryBlogDTO.BlogId && x.CategoryId == categoryBlogDTO.CategoryId); if (categoryBlog != null) { await _categoryBlogDAL.RemoveAsync(categoryBlog); } }
public async Task RemoveAsync(TEntity entity) { await _genericDal.RemoveAsync(entity); }