I want to get it some filed using OrderBy condition but in my scenario orderby not working. In here my ProductSequence is int filed.
IList<ProViewModels> _newprd = iproRepository
.GetList(x => x.ProductId.Equals(ProductId))
.Select(x => new ProViewModels { ProductName = x.ProductName, DisplayName = x.DisplayName })
.OrderBy(x=>x.ProOrder).ToList();
return _newprd ;
Aucun commentaire:
Enregistrer un commentaire