public IEnumerable<Tag> Get() { var repo = new PublicManager(); return repo.GetTags(); }
public IEnumerable<Post> Get() { var repo = new PublicManager(); var results = repo.GetAllPosts(); return results.Where(p => p.Status == ApprovalStatus.Approved).ToList(); }
public Post Get(int id) { var repo = new PublicManager(); return repo.GetPostByID(id); }
public IEnumerable<Post> Get() { var repo = new PublicManager(); return repo.GetAllPosts(); }