public static async Task <int> Count(ApplicationDbContext context, BlogEntity entity) { if (entity.categoryname != "" || entity.categoryid > 0 || entity.category_ids.Length > 0) { return(await CategorizeBlogs.Count(context, entity)); } else if (entity.loadabusereports) { return(await AbuseBlogs.Count(context, entity)); } else { return(await _Count(context, entity)); } }
public static async Task <List <JGN_Blogs> > LoadItems(ApplicationDbContext context, BlogEntity entity) { if (entity.categoryname != "" || entity.categoryid > 0 || entity.category_ids.Length > 0) { return(await CategorizeBlogs.LoadItems(context, entity)); } else if (entity.loadabusereports) { return(await AbuseBlogs.LoadItems(context, entity)); } else { return(await _LoadItems(context, entity)); } }