// GET api/<controller>/5 public IHttpActionResult Get(int idBook, string value) { if (Repositories.CheckHisBook(idBook, value) == false) { return(Ok()); } return(InternalServerError()); }