public int InsertarListaNegra(ListaNegra oListaNegra) { int LISTANEGRAID; try { LISTANEGRAID = ListaNegraDA.InsertarListaNegra(oListaNegra); } catch (Exception ex) { throw ex; } return LISTANEGRAID; }
public int InsertarListaNegra(ListaNegra oListaNegra) { int? ListaNegraID = 0; try { using (ListaNegraDataContext dc = new ListaNegraDataContext(Helper.ConnectionString())) { dc.stp_InsertaListaNegra(oListaNegra.VCHIDQEQ , oListaNegra.VCHTIPOLISTA , oListaNegra.VCHNOMBRE , oListaNegra.VCHAPPATERNO , oListaNegra.VCHAPMATERNO , oListaNegra.VCHCURP , oListaNegra.VCHRFC , oListaNegra.VCHFECHANAC , oListaNegra.VCHESTATUS , oListaNegra.VCHDEPENDENCIA , oListaNegra.VCHPUESTO , oListaNegra.INTIDDISPO , oListaNegra.BITCURPOK , oListaNegra.VCHIDREL , oListaNegra.VCHPARENTESCO , oListaNegra.VCHRAZONSOCIAL , oListaNegra.VCHRFCMORAL , oListaNegra.VCHISSSTE , oListaNegra.VCHIMSS , oListaNegra.VCHINGRESOS , oListaNegra.VCHNOMCOMPLETO , oListaNegra.VCHAPELLIDOS , oListaNegra.VCHENTIDAD , oListaNegra.VCHGENERO , oListaNegra.AUDUSUARIO , DateTime.Now , oListaNegra.vchCadenaNPM , oListaNegra.vchCadenaNMP); } } catch (Exception ex) { throw ex; } return ListaNegraID.Value; }
public ServiceResult InsertarListaNegra(ListaNegra oListaNegra) { ServiceResult resultado = new ServiceResult(); try { resultado.ResultValue = (new ListaNegraLogic()).InsertarListaNegra(oListaNegra); resultado.ServiceOk = true; } catch (Exception ex) { resultado.ErrorMessage = "Error en ListaNegraServices.InsertarListaNegra:" + ex.Message; #if (DEBUG) Console.WriteLine(resultado.ErrorMessage); #else //EventLogManager.LogErrorEntry(result.ErrorMessage); #endif } return resultado; }