Exemplo n.º 1
0
        public IEnumerable <Subjects> GetSubjects()
        {
            IEnumerable <Subjects> items = subjectManager.GetSubjectsFromDB();

            if (items == null)
            {
                throw new HttpResponseException(HttpStatusCode.NotFound);
            }
            return(items);
        }