如何通过StartDate
and订购UserLikeProduct
?我需要排序,StartDate
但UserLikeProduct
首先显示。
public IEnumerable<Check> GetHomeCeeck()
{
return this.Query()
.Where(c => c.IsPublish && c.IsHomepageProduct)
.OrderBy(c => c.StartDate)
.Take(30)
.ToList();
}