private async Task <IEnumerable <Location> > GetLocations(string userId) { var orders = new OrderRepo(); var orderList = await orders.GetOrdersForUserAsync(userId); var loc = new LocationRepo(); var locationList = new List <Location>(); foreach (var v in orderList) { locationList.Add(loc.GetOne(v.LocationId)); } return(locationList); }