public async Task <IActionResult> IndexAsync(string id) { Event eventData = await _httpHelper.GetWithID <Event>(endpoint, id); Makerspace makerspace = await _httpHelper.GetWithID <Makerspace>("makerspace", eventData.makerSpaceId); eventData.makerspace = makerspace; return(View(eventData)); }
public async Task <IActionResult> IndexAsync() { List <Event> events = await _httpHelper.Get <List <Event> >(endpoint); foreach (var item in events) { item.makerspace = await _httpHelper.GetWithID <Makerspace>("makerspace", item.makerSpaceId); } return(View(events)); }
public async Task <IActionResult> IndexAsync(string id) { User user = await _httpHelper.GetWithID <User>(endpoint, id); return(View(user)); }
public async Task <IActionResult> IndexAsync(string id) { Makerspace makerspace = await _httpHelper.GetWithID <Makerspace>(endpoint, id); return(View(makerspace)); }