Example #1
0
        private Timing LoadTiming(Guid id)
        {
            var timingPoco = Timings.FindOne(Query <TimingPoco> .EQ(poco => poco.Id, id));
            var timing     = TimingPocoToTiming(timingPoco);

            if (timing != null)
            {
                timing.Children      = LoadChildrenTimings(timing.Id);
                timing.CustomTimings = LoadCustomTimings(timing.Id);
            }

            return(timing);
        }