Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error: Best overoaded method has some invalid arument

Status
Not open for further replies.

sreejithenc

Programmer
Mar 25, 2013
2
0
0
public List<AutoPublishLog> FetchList(int pageID, DateTime startDate, DateTime endDate, bool? pageStatus, List<ProductID> productID, int recordLimit)
{ var query = _unitOfWork.AutoPublishLogRepository.FetchQueryable(null, "AutoPublishLogWarnings", true);
var resultList = (from r in query
where (r.PageID == pageID && r.LastSaved >= startDate && r.LastSaved <= endDate &&
((pageStatus != null && ((pageStatus == true && r.PublishDate != null) || (pageStatus == false && r.PublishDate == null)))
|| pageStatus == null) && r!=null && productID.Contains(r.ProductID)
)
//TODO:add the filter productID and AutoPublishWarningStatusID.Valid =(Int32)Objects.PrimaImq.Constants.AutoPublishWarningStatusID.Valid
select r).Take(recordLimit).ToList();
return resultList;

}
How to include this condition- filter the product ids in resultList from the id's in the parameter " List<ProductID> productID
 
thanks actually its List<int> productID now its correct
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top