public CategoryPage GetCategory(string param) { var category = new CategoryController().GetCachedCategoryByLinkName(param, true); if (category != null) { var categoryPage = new CategoryPage(); categoryPage.CategoryID = category.Id; categoryPage.CategoryName = category.LinkName; categoryPage.MetaDescription = category.MetaDescription; categoryPage.MetaKeywords = category.MetaKeywords; return categoryPage; } return null; }