     
     func save(controller:CCreate)
     {
+        self.controller = controller
         
+        let created:TimeInterval = Date().timeIntervalSince1970
+        
+        DManager.sharedInstance?.createData(
+            entityName:DNote.entityName)
+        { [weak self] (data) in
+            
+            guard
+            
+                let note:DNote = data as? DNote,
+                let font:MCreateFont = self?.font,
+                let selectedBackground:Int = self?.selectedBackground
+            
+            else
+            {
+                return
+            }
+            
+            note.created = created
+            note.fontSize = Float(font.fontSize)
+            note.selectedFont = Int16(font.selectedFont)
+            note.selectedBackground = Int16(selectedBackground)
+            
+            self?.createFrames(note:note)
+        }
     }
 }

        addFrame()
    }
    
    //MARK: public
    
    func addFrame()

    var frames:[MCreateFrame]
    var selectedFrame:Int
    var selectedBackground:Int
    private weak var controller:CCreate?
    
    private class func factoryContent() -> [MCreateContentProtocol]
    {
