Esempio n. 1
0
 public HttpResponseMessage Get()
 {
     try
     {
         String html = "";
         foreach (usuario usr in user.GetUsuarios())
         {
             html += usr.nombre + usr.correo + usr.contrasena + "\n";
         }
         return(Request.CreateResponse(HttpStatusCode.OK, html));
     }
     catch (Exception e)
     {
         throw new ArgumentException(e.Message);
     }
 }