public static bool CreateExecution(ref SchedulerExecution execution) { int iSchedulerExecutionId = SchedulerDao.AddExecution(execution); if (iSchedulerExecutionId != 0) { execution.SchedulerExecutionId = iSchedulerExecutionId; return(true); } else { return(false); } }