protected override NoteData CreateData(Note source, int id, string parentType) { var data = CreateDataFor(source, id, null, parentType); data.ParentType = parentType; NoteData.SetParent(db, parentType, data); // var project = ItemData<Task, Item>.GetProject(data.Parent, db); data.Entity.ProjectId = data.ParentItem.ProjectId; db.SaveChanges(); return data; }
protected override NoteData CreateData(Note t, int id) { return CreateDataFor(t, id); }