public async Task SaveOrDeletePerformance(string AccountId, int performanceId) { Entities.Models.Wishlist performance = await WishlistRepository.GetPerformanceByPhoneIdAndPerformanceId( AccountId, performanceId); if (performance == null) { performance = new Entities.Models.Wishlist() { AccountId = int.Parse(AccountId), PerformanceId = performanceId }; WishlistRepository.Add(performance); } else { WishlistRepository.Remove(performance); } theaterScheduleUnitOfWork.Save(); }