/// <summary> /// Saves the show in the database, assigning its Id and the search title used. /// </summary> private async Task <Show> SaveShow(Show show, string searchTitle) { show.AddUniqueTitle(searchTitle); show.Id = await _showRepository.InsertAsync(show); return(show); }