public async Task <EventDto> GetEventById(Guid eventId) { var response = await client.GetAsync(EventCatalogOperations.GetEventById(eventId)); return(await response.ReadContentAs <EventDto>()); }
public async Task <List <CategoryDto> > GetAllCategories() { var response = await client.GetAsync(EventCatalogOperations.GetAllcategories()); return(await response.ReadContentAs <List <CategoryDto> >()); }
public async Task <List <EventDto> > GetEventsPerCategory(Guid categoryId) { var response = await client.GetAsync(EventCatalogOperations.GetEventsPerCategory(categoryId)); return(await response.ReadContentAs <List <EventDto> >()); }