public string Eliminar_facturas_o_vales(int IdEmpresa, int IdTipoCbte, decimal IdCbteCble, string TipoCbte, bool Eliminar_desvincular) { try { string Mensaje = ""; using (EntitiesCuentasxPagar Context = new EntitiesCuentasxPagar()) { var lst = from q in Context.spCXP_eliminar_factura_vale_conciliacion_caja(IdEmpresa, IdTipoCbte, IdCbteCble, TipoCbte, Eliminar_desvincular) select q; foreach (var item in lst) { Mensaje = item.ToString(); } } return(Mensaje); } catch (Exception ex) { 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 mensaje); mensaje = ex.ToString() + " " + ex.Message; throw new Exception(ex.ToString()); } }