public Boolean GuardarDB(prd_conversion_cusCidersus_x_in_movi_inven_Info Info) { try { List <prd_conversion_cusCidersus_x_in_movi_inven_Info> Lst = new List <prd_conversion_cusCidersus_x_in_movi_inven_Info>(); using (EntitiesProduccion_Cidersus Context = new EntitiesProduccion_Cidersus()) { var Address = new prd_conversion_cusCidersus_x_in_movi_inven(); Address.IdEmpresa = Info.IdEmpresa; Address.IdSucursal = Info.IdSucursal; Address.IdBodega = Info.IdBodega; Address.IdMovi_inven_tipo = Info.IdMovi_inven_tipo; Address.IdNumMovi = Info.IdNumMovi; Address.cv_IdEmpresa = Info.cv_IdEmpresa; Address.cv_IdConversion = Info.cv_IdConversion; Context.prd_conversion_cusCidersus_x_in_movi_inven.Add(Address); Context.SaveChanges(); } return(true); } 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); mensaje = ex.ToString() + " " + ex.Message; oDataLog.Guardar_Log_Error(Log_Error_sis, ref mensaje); throw new Exception(ex.ToString()); } }
public Boolean GuardarDB(prd_conversion_cusCidersus_x_in_movi_inven_Info Info) { try { return(Data.GuardarDB(Info)); } catch (Exception ex) { Core.Erp.Info.Log_Exception.LoggingManager.Logger.Log(Core.Erp.Info.Log_Exception.LoggingCategory.Error, ex.Message); throw new Core.Erp.Info.Log_Exception.DalException(string.Format("", "GuardarDB", ex.Message), ex) { EntityType = typeof(prd_conversion_cusCidersus_x_in_movi_inven_Bus) }; } }