public Boolean Procesar_egresos(int IdEmpresa, decimal IdPrefacturacion) { try { using (Entity_Facturacion_FJ Context = new Entity_Facturacion_FJ()) { Context.spFa_pre_facturacion_det_egr_x_bod(IdEmpresa, IdPrefacturacion); } return(true); } catch (Exception ex) { string MensajeError = ""; string arreglo = ToString(); tb_sis_Log_Error_Vzen_Data oDataLog = new tb_sis_Log_Error_Vzen_Data(); tb_sis_Log_Error_Vzen_Info Log_Error_sis = new tb_sis_Log_Error_Vzen_Info(ex.ToString(), "", arreglo, "", "", "", "", "", DateTime.Now); oDataLog.Guardar_Log_Error(Log_Error_sis, ref MensajeError); MensajeError = ex.ToString(); throw new Exception(ex.ToString()); } }