private IDataProividerResultTasksBase AddTaskToTasks(CLTask data, ITaskGroup tasks) { IDataProividerResultTasksBase result = new DataProviderResultTasks(); ITaskGroup tasksCoppy = tasks.Clone(); tasksCoppy.AddTask(data); result.data = tasksCoppy; result.sucess = true; return(result); }
private IDataProividerResultTasksBase SetTaskStatusInTasks(CLTask data, ITaskGroup tasks) { IDataProividerResultTasksBase result = new DataProviderResultTasks(); ITaskGroup tasksCoppy = tasks.Clone(); try { tasksCoppy.SetTask(data); result.data = tasksCoppy; result.sucess = true; } catch (Exception error) { result.sucess = false; result.error = error.Message; } return(result); }