private async Task CreateRecentlyAdded(SocialMediaListsDetails details) { var now = DateTime.UtcNow; var name = "Recently Added"; details.Lists.Add(new SocialListBase { Id = RecentlyAddedId, Created = now, Name = name }); var updateListsDetailsTask = _repo.UpdateListsDetailsAsync(details.Id, details); var createListTask = _repo.CreateAsync(new SocialList { Id = RecentlyAddedId, Created = now, Name = name, MediaPosts = new List <MediaPost>() }); await Task.WhenAll(updateListsDetailsTask, createListTask); }