public async static Task <List <Category> > GetCategoryAsync() { return(await GenericDataAccess.GetAsync <Category>(Category.DatabaseName)); }
public async static Task <Category> GetCategoryAsync(int id) { return(await GenericDataAccess.GetAsync <Category>(Category.DatabaseName, id)); }