Esempio n. 1
0
        public IHttpActionResult GetAllSubjectNames()
        {
            var subjects = subjectRepo.GetAllNames();

            if (!subjects.Any())
            {
                return(Content(HttpStatusCode.NotFound, "List is empty"));
            }

            return(Ok(subjects));
        }