     
     func addFlashcard(deckID: String, flashcard: Flashcard, completion: (DataManagerResponse<Flashcard>) -> ()) {
         handleJSONRequest(
-            localFetch: {
-                self.localDataManager.update(flashcard)
-                return flashcard
-            },
             remoteFetch: {
                 self.remoteDataManager.addFlashcard(deckID, flashcard: flashcard, completion: $0)
             }, completion: completion)
-
     }
     
     func removeFlashcard(deckID: String, flashcard: Flashcard, completion: (DataManagerResponse<Void>) -> ()) {

    
    func updateFlashcard(deckID: String, flashcard: Flashcard, completion: (DataManagerResponse<Flashcard>) -> ()) {
        handleJSONRequest(
            localFetch: {
                self.localDataManager.update(flashcard)
                return flashcard
            },
            remoteFetch: {
                self.remoteDataManager.updateFlashcard(deckID, flashcard: flashcard, completion: $0)
            }, completion: completion)

            remoteParsing: {
                if let deck = self.localDataManager.get(Deck.self, withId: deckID){
                    deck.isPublic = isPublic
                    self.localDataManager.update(deck)
                }
                return nil
            }, completion: completion)
