public async Task <CurseForgeItem[]> popular(category category) { CurseForgeItem[] forgeItems = new CurseForgeItem[0]; await Task.Factory.StartNew(() => { forgeItems = Curseforge.popular(6, category); }); return(forgeItems); }
public async Task <CurseForgeItem[]> Search(string name, category category) { CurseForgeItem[] forgeItems = new CurseForgeItem[0]; await Task.Factory.StartNew(() => { forgeItems = Curseforge.Search(name, 6, category); }); return(forgeItems); }