public IHttpActionResult Post(Class cls) { var item = classRepo.Post(cls); if (item != null) { return(Ok(item)); } return(NotFound()); }