public HttpResponseMessage SelectById(Guid id) { if (!ModelState.IsValid) { return(Request.CreateErrorResponse(HttpStatusCode.BadRequest, ModelState)); } SecurityToken response = new SecurityToken(); response = _svc.SelectById(id); return(Request.CreateResponse(HttpStatusCode.OK, response)); }