public IEnumerable <CategoryData> GetCategoryData() { return(DataAccessHelper.FillTable <CategoryData>($"SELECT * FROM {TableName}", _configuration)); }
public CategoryData GetCategoryData(int categoryId) { return(DataAccessHelper.GetSingle <CategoryData>($"SELECT * FROM {TableName} WHERE {ColumnNames.PrimaryKey} = {categoryId}", _configuration)); }
public LearningData GetLearningData(int learningDataId) { return(DataAccessHelper.GetSingle <LearningData>($"SELECT * FROM {TableName} WHERE {ColumnNames.PrimaryKey} = {learningDataId}", _configuration)); }