Example #1
0
        public static bool Exists(int id)
        {
            var cmd = new ProjectExistsCommand(id);

            cmd = DataPortal.Execute <ProjectExistsCommand>(cmd);
            return(cmd.ProjectExists);
        }
Example #2
0
 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);
   });
 }