예제 #1
0
        private IEnumerable <Slot> GetSlots(string project, DateTime start, DateTime end)
        {
            TimeModel timeService = TimeModel.getService();

            if (!timeService.GetProjects().Contains(project))
            {
                return(timeService.GetSlots(start, end));
            }
            return(timeService.GetSlots(project, start, end));
        }
예제 #2
0
        public IEnumerable <Slot> GetSlots(string project)
        {
            TimeModel timeService = TimeModel.getService();

            if (!timeService.GetProjects().Contains(project))
            {
                return(timeService.GetSlots());
            }
            return(timeService.GetSlots(project));
        }