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)); }
public IEnumerable <Slot> GetSlots(string project) { TimeModel timeService = TimeModel.getService(); if (!timeService.GetProjects().Contains(project)) { return(timeService.GetSlots()); } return(timeService.GetSlots(project)); }