public IEnumerable <Post> GetHighestPosts() { return(MyDbSet.OrderByDescending(p => p.Rate).ToList()); }
public IEnumerable <Post> GetLatestPost() { return(MyDbSet.OrderByDescending(p => p.PostedOn).ToList()); }
public IEnumerable <Post> GetMostViewedPost() { return(MyDbSet.OrderByDescending(p => p.ViewCount).ToList()); }