示例#1
0
        public ActionResult <Activity> GetPossibleDayActivities(string templateName, int weekNr, int dayNr, TimeOfDay timeOfDay)
        {
            IEnumerable <Activity> activities = _dayRepository.GetPossibleDayActivities(templateName, weekNr, dayNr, timeOfDay);

            if (activities == null)
            {
                return(NotFound());
            }
            else
            {
                return(Ok(activities));
            }
        }