Example #1
0
        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);
            }
        }
Example #2
0
 public async Task RemoveAsync(TEntity entity)
 {
     await _genericDal.RemoveAsync(entity);
 }