public async Task <IActionResult> Create() { Subgroup subgroup = new Subgroup(); subgroup.Groups = await groupClient.GetAllGroups(); return(View(subgroup)); }
public async Task <IActionResult> Index() { var data = await apiClient.GetAllGroups(); return(View(data)); }