Beispiel #1
0
        public ActionResult <IEnumerable <Day> > GetAll(string templateName)
        {
            IEnumerable <Day> days = _dayRepository.GetAllByTemplateName(templateName).ToList();

            if (days == null || !days.Any())
            {
                return(NotFound());
            }
            else
            {
                return(Ok(days));
            }
        }