ObtenerSitios DAL - WCF Se le agrego el parametro para filtrar por usuario
git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C199
This commit is contained in:
parent
6faf2d0704
commit
a7ad942368
2 changed files with 6 additions and 6 deletions
|
|
@ -97,7 +97,7 @@ namespace AYA.SlnSinort.WCF
|
||||||
|
|
||||||
#region PropuestaNormativa
|
#region PropuestaNormativa
|
||||||
[OperationContract]
|
[OperationContract]
|
||||||
ProyectoNormativoJSON ObtenerSitios();
|
ProyectoNormativoJSON ObtenerSitios(AtesaJSON model);
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Contenido
|
#region Contenido
|
||||||
|
|
|
||||||
|
|
@ -353,19 +353,19 @@ namespace AYA.SlnSinort.WCF
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region ProyectoNormativo
|
#region ProyectoNormativo
|
||||||
public ProyectoNormativoJSON ObtenerSitios()
|
public ProyectoNormativoJSON ObtenerSitios(AtesaJSON model)
|
||||||
{
|
{
|
||||||
ProyectoNormativoJSON model = new ProyectoNormativoJSON();
|
ProyectoNormativoJSON registros = new ProyectoNormativoJSON();
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
model = new ProyectoNormativoDAL().ObtenerSitios();
|
registros = new ProyectoNormativoDAL().ObtenerSitios(model);
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
model.CodigoRespuesta = EnumTipoCodigoRespuesta.ERROR;
|
registros.CodigoRespuesta = EnumTipoCodigoRespuesta.ERROR;
|
||||||
log.Error(ex);
|
log.Error(ex);
|
||||||
}
|
}
|
||||||
return model;
|
return registros;
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue