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