예제 #1
0
        public ActionResult <IEnumerable <Day> > GetAll()
        {
            IEnumerable <Day> days = _dayRepository.GetAll().ToList();

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