public static TrainDetailRepository CreateTrainDetailRepo()
        {
            var dc = ConnectionFactory.GetTrainingDC();

            return(new TrainDetailRepository(dc, CreateRootRepo(), CreateProcessWorkflowRepo()));
        }
        public static TrainRepository CreateTrainRepo()
        {
            var dc = ConnectionFactory.GetTrainingDC();

            return(new TrainRepository(dc));
        }