I'm doing this web method, and everything is fine until the moment when it will return the data, "It does not show them" and I do not know what is wrong with me. The controller works, the Repository works, the SP works, the matter is at the time of returning the data.
[WebInvoke(Method = "Get", BodyStyle = WebMessageBodyStyle.Wrapped,
ResponseFormat = WebMessageFormat.Xml)]
[OperationBehavior]
public ResultadoOperacionConValor<TarjetaHabiente>
TarjetahabienteCargarPorCedulaNacionalidadyCliente(int cedula, int nacionalidad, int clienteID)
{
var resultado = new ResultadoOperacionConValor<TarjetaHabiente> { Estatus = EstatusOperacion.OperacionExitosa };
try
{
resultado.Valor = _controladorTarjetahabiente.TarjetahabientesCargar(cedula, nacionalidad, clienteID);
}
catch (Exception ex)
{
Notificador.LogError(ErrorTipo.ErrorMetodoWeb, ex, "");
return new ResultadoOperacionConValor<TarjetaHabiente>(EstatusOperacion.OperacionNoSoportada, Excepciones.ErrorMetodoAplicacion);
}
return resultado;
}