private bool UpsertEvent(EventAdministrationViewModel viewModel, VenueModel venueModelForConcert, PerformerModel artistFromDb) { // Add event if it doesn't exist const ServerTargetEnum saveToShardDb = ServerTargetEnum.Primary; var eventDateTime = new DateTime(viewModel.Year, viewModel.Month, viewModel.Day, 20, 0, 0); if (_concertRepository.SaveNewConcert(viewModel.NewEvent, viewModel.Description, eventDateTime, saveToShardDb, venueModelForConcert.VenueId, artistFromDb.PerformerId) == null) { DisplayMessage(String.Format(" Failed to add new concert event. \'{0}\'", viewModel.NewEvent)); return(false); } DisplayMessage(string.Format("Successfully added new event {0}.", viewModel.NewEvent)); return(true); }