public IEnumerable <Blog> GetAllByCategotyExceptCurrent(EBlogCategory cat, int id) { return(_Context.Blogs .Include("HeaderImage") .Include("ApplicationUser") .Where(b => b.Category == cat && b.Id != id && b.IsPublished)); }
private IEnumerable <Blog> GetBlogList(EBlogCategory category) { return(_unitOfWork.Blogs.GetAllByCategoty(category).OrderByDescending(b => b.PublishedOn)); }