public static bool Exists(int id) { var cmd = new ProjectExistsCommand(id); cmd = DataPortal.Execute <ProjectExistsCommand>(cmd); return(cmd.ProjectExists); }
public static void Exists(int id, Action<bool> result) { var cmd = new ProjectExistsCommand(id); DataPortal.BeginExecute<ProjectExistsCommand>(cmd, (o, e) => { if (e.Error != null) throw e.Error; else result(e.Object.ProjectExists); }); }