private async Task <List <EventVM> > GetEvents(int orgId) { var response = await _eventiApi.GetOrganizerEventsAsync(orgId); return(response.Content.Select ( i => new EventVM { ID = i.ID, Name = i.Name, Description = i.Description, Image = i.Image, Start = i.Start, End = i.End, EventCategory = i.EventCategory, IsApproved = i.IsApproved, IsCanceled = i.IsCanceled, OrganizerID = i.OrganizerID, VenueID = i.VenueID } ).ToList()); }