public static void GetProject(int id, EventHandler <DataPortalResult <ProjectEdit> > callback) { ProjectGetter.GetExistingProject(id, (o, e) => { callback(o, new DataPortalResult <ProjectEdit>(e.Object.Project, e.Error, null)); }); }
public static void NewProject(EventHandler <DataPortalResult <ProjectEdit> > callback) { ProjectGetter.CreateNewProject((o, e) => { callback(o, new DataPortalResult <ProjectEdit>(e.Object.Project, e.Error, null)); }); }