// GET: api/Usuario
        public HttpResponseMessage Get()
        {
            HttpResponseMessage result = null;

            result = Request.CreateResponse(HttpStatusCode.OK, logica.ObtenerUsuarios());
            return(result);
        }
Example #2
0
        public IHttpActionResult Get()
        {
            HttpResponseMessage result = null;
            var modelo = logica.ObtenerUsuarios();

            apiResponse.Model = modelo;
            apiResponse.StatusIsSuccessful = true;
            apiResponse.ResponseCode       = HttpStatusCode.OK;
            result = Request.CreateResponse(HttpStatusCode.OK, apiResponse);
            return(ResponseMessage(result));
        }
 // GET: /Usuario
 public List <USUARIO> Get(string encriptado)
 {
     respuestaDescriptada = encripta.Desencripta(encriptado);
     return(logica.ObtenerUsuarios());
 }