public List <BlogPost> GetAll() { // Raw SQL // applicationContext.BlogPosts.FromSql("SELECT * FROM BlogPosts"); // return applicationContext.BlogPosts.Include(p => p.Category).ToList(); return(blogPostRepository.FindAll()); }