コード例 #1
0
        public static IEnumerable <ShiftTimeslot> ShiftTimeSlots()
        {
            var shiftTimeSlots = new List <ShiftTimeslot>();

            var st1 = new ShiftTimeslot()
            {
                Id        = 1,
                StartTime = new TimeSpan(9, 30, 0),
                EndTime   = new TimeSpan(12, 30, 0)
            };
            var st2 = new ShiftTimeslot()
            {
                Id        = 2,
                StartTime = new TimeSpan(6, 30, 0),
                EndTime   = new TimeSpan(10, 30, 0)
            };

            shiftTimeSlots.Add(st1);
            shiftTimeSlots.Add(st2);

            return(shiftTimeSlots);
        }
コード例 #2
0
 public NotificationCollection SaveTimeslot(ShiftTimeslot timeslot)
 {
     return(repository.Save(timeslot));
 }