public ActionResult <IEnumerable <Day> > GetAll(string templateName, int weekNr) { IEnumerable <Day> days = _dayRepository.GetAllByWeek(templateName, weekNr).ToList(); if (days == null || !days.Any()) { return(NotFound()); } else { return(Ok(days)); } }