How can I display only a few columns in a WebService? Home
Example:
I need to expose only the Name and AboutName of the table:
public class Cliente
{
public string Nome {get; set;}
public string SobreNome {get; set;}
public string CPF {get; set;}
}
[WebMethod]
public Cliente RetrieveDevice(Cliente Cliente)
{
Cliente cli = new Cliente();
Negocio objNegocio = new Negocio();
cli = objNegocio.getCliente(Cliente);
return cli;
}