public bool Equals(ILibModuleInfo other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(ModuleGuid == other.ModuleGuid); }
public DataResult <int> CreateDynamicModule( DynamicModuleModel dynamicModuleModel, ILibModuleInfo dynamicModuleInfo ) { var dynamicModuleEntity = new DynamicModuleEntity { ModuleGuid = dynamicModuleModel.ModuleGuid, Name = dynamicModuleModel.Name, ConfigurationVersion = dynamicModuleInfo.Version }; try { var result = m_dynamicModuleUoW.CreateDynamicModule(dynamicModuleEntity); return(Success(result)); } catch (DatabaseException e) { m_logger.LogWarning(e); return(Error <int>(e.Message)); } }