Js - DAL- Ficha Tecnica
git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C271
This commit is contained in:
parent
59844833e5
commit
f0af0ebd58
1 changed files with 5 additions and 5 deletions
|
|
@ -17,7 +17,6 @@ namespace AYA.SlnSinortModel.DAL.Sinort
|
|||
|
||||
public AdjuntosJSON GuardarAdjuntos(AdjuntosJSON model)
|
||||
{
|
||||
AdjuntosJSON Respuesta = new AdjuntosJSON();
|
||||
try
|
||||
{
|
||||
model.ClearProperties();
|
||||
|
|
@ -32,20 +31,21 @@ namespace AYA.SlnSinortModel.DAL.Sinort
|
|||
|
||||
Conn.SaveChanges();
|
||||
Conn.Commit();
|
||||
Respuesta.CodigoRespuesta = EnumTipoCodigoRespuesta.EXITOSO.ToString();
|
||||
model.CodigoRespuesta = EnumTipoCodigoRespuesta.EXITOSO.ToString();
|
||||
}
|
||||
}
|
||||
catch (DbEntityValidationException ex)
|
||||
{
|
||||
log.Error(ex);
|
||||
Respuesta.CodigoRespuesta = EnumTipoCodigoRespuesta.ERROR.ToString();
|
||||
model.CodigoRespuesta = EnumTipoCodigoRespuesta.ERROR.ToString();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
log.Error(ex);
|
||||
Respuesta.CodigoRespuesta = EnumTipoCodigoRespuesta.ERROR.ToString();
|
||||
model.CodigoRespuesta = EnumTipoCodigoRespuesta.ERROR.ToString();
|
||||
}
|
||||
return Respuesta;
|
||||
|
||||
return model;
|
||||
}
|
||||
public List<DocumentosAdjuntos> ObtenerAdjuntos(AdjuntosJSON model)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue