How to order by StartDate
and UserLikeProduct
? I need to sort by StartDate
but show by UserLikeProduct
first.
public IEnumerable<Check> GetHomeCeeck()
{
return this.Query()
.Where(c => c.IsPublish && c.IsHomepageProduct)
.OrderBy(c => c.StartDate)
.Take(30)
.ToList();
}