public IHttpActionResult GetAllSubjectNames() { var subjects = subjectRepo.GetAllNames(); if (!subjects.Any()) { return(Content(HttpStatusCode.NotFound, "List is empty")); } return(Ok(subjects)); }