internal IEnumerable <Blog> GetAll(string userEmail) { //takes in email, gets all blogs, finds blogs where creator is userEmail passed //OR published is true IEnumerable <Blog> blogs = _repo.GetAll(); return(blogs.ToList().FindAll(b => b.CreatorEmail == userEmail || b.Published)); }
public IEnumerable <Blog> GetAll() { return(_repo.GetAll()); }
internal IEnumerable <Blog> GetAll() { return(_repo.GetAll()); }
public IActionResult Index() { var model = _blogsRepository.GetAll(); return(View(model)); }