AspNet.StarterKits.Classifieds.BusinessLogicLayer.AdsDB.GetAdsByQuery C# (CSharp) Метод

GetAdsByQuery() публичный статический Метод

public static GetAdsByQuery ( int recordLimit, int categoryId, int memberId, decimal maxPrice, string searchTerm, string location, int adType, int adStatus, int adLevel, int dayRange, bool mustHaveImage ) : AdsDataComponent.AdsDataTable
recordLimit int
categoryId int
memberId int
maxPrice decimal
searchTerm string
location string
adType int
adStatus int
adLevel int
dayRange int
mustHaveImage bool
Результат AdsDataComponent.AdsDataTable
		public static AdsDataComponent.AdsDataTable GetAdsByQuery(int recordLimit, int categoryId, int memberId, decimal maxPrice, string searchTerm, string location, int adType, int adStatus, int adLevel, int dayRange, bool mustHaveImage)
		{
			DateTime? minCreatedDate = null;
			if (location == null) location = "";
			if (dayRange > 0)
				minCreatedDate = DateTime.Now.Subtract(TimeSpan.FromDays(dayRange));
			// To return no results if the searchTerm is empty remove the following
			// check on the searchTerm.
			if (searchTerm == null)
				searchTerm = "";

			return null;
		}