public Boolean Procesar_Pre_Fact(Aca_Pre_Facturacion_Info Info, int IdSede, ref string msg, ref decimal IdPrefacturacion) { try { using (Entities_Academico context = new Entities_Academico()) { var select = context.spACA_Pre_facturar_x_periodo(Info.IdEmpresa_fact, Info.IdInstitucion, IdSede, Info.IdAnioLectivo, Info.IdPeriodo, Info.IdGrupoFE, Info.IdPreFacturacion, Info.fecha_prefacturacion, Info.Estado_Pre_factutacion_Cat, Info.observacion_fact); foreach (var item in select) { IdPrefacturacion = item.Value; } //IdPrefacturacion = } return(true); } catch (Exception ex) { string array = 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(), "", array, "", "", "", "", "", DateTime.Now); oDataLog.Guardar_Log_Error(Log_Error_sis, ref mensaje); mensaje = ex.InnerException + " " + ex.Message; throw new Exception(ex.InnerException.ToString()); } }