public ActionResult <IEnumerable <Day> > GetAll() { IEnumerable <Day> days = _dayRepository.GetAll().ToList(); if (days == null) { return(NotFound()); } else { return(Ok(days)); } }
public ActionResult <IEnumerable <Day> > GetAll() { IEnumerable <Day> days = _dayRepository.GetAll().ToList(); if (days == null) { return(NotFound()); } else { return(Ok(days)); } }