Ejemplo n.º 1
0
        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));
        }