public CategoryData GetCategory(int categoryid) { CategoryData data = new CategoryData(); try { data.CategoryList = RetriveDataList(categoryid); } catch{ } return data; }
public List<Category> GetCategoryList(int categoryid) { da = new DACategory(dbProviderFactory); data = new CategoryData(); data = da.GetCategory(categoryid); if (data.ResultCode == ResultCodes.SUCCESSFUL_TRANSACTION) { if (data.CategoryList.Count > 0) { return data.CategoryList; } else { return null; } } else { return null; } }