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

GetFirstRow() приватный статический Метод

private static GetFirstRow ( AdsDataComponent table ) : AdsDataComponent.AdsRow
table AdsDataComponent
Результат AdsDataComponent.AdsRow
		private static AdsDataComponent.AdsRow GetFirstRow(AdsDataComponent.AdsDataTable table)
		{
			if (table != null && table.Rows.Count > 0)
			{
				AdsDataComponent.AdsRow row;
				row = table.Rows[0] as AdsDataComponent.AdsRow;
				row.URL = System.Web.HttpUtility.UrlDecode(row.URL);
				row.Title = System.Web.HttpUtility.HtmlDecode(row.Title);
				row.Description = System.Web.HttpUtility.HtmlDecode(row.Description);
				row.Location = System.Web.HttpUtility.HtmlDecode(row.Location);
				return row;
			}
			else
				return null;
		}