public CategoryViewModel GetCategory(int categoryId, int?subCategoryId, int?provinceId, int?cityId, string offerType, string policySearchText) { CategoryDto response = EntityFactory.CategoryManager.GetCategory(categoryId, new PolicyFilter { IncludeFilter = true, SubCategoryId = subCategoryId, ProvinceId = provinceId, CityId = cityId, SearchText = policySearchText, OfferType = offerType }); return(response == null ? new CategoryViewModel() : response.MapFromDto()); }