public IHttpActionResult GetActive() { var list = classRepo.GetActive(); if (list != null && list.Count() > 0) { return(Ok(list)); } return(NotFound()); }