Ejemplo n.º 1
0
        public void DeleteAssemblyMms(string id)
        {
            var assemblyMms = GetAssemblyMms(id);

            if (assemblyMms is null)
            {
                throw new ArgumentException($"AssemblyMms with id = {id} doesn't exist");
            }
            if (assemblyMms.ConfiguringMms != null)
            {
                _configuringMmsService.DeleteConfiguringMms(assemblyMms.ConfiguringMms.Id);
            }

            if (assemblyMms.MakeProduct != null)
            {
                _makeProductService.DeleteMakeProduct(assemblyMms.MakeProduct.Id);
            }
            _assemblyMmsRepository.DeleteAssemblyMms(id);
        }
Ejemplo n.º 2
0
 public void DeleteConfiguringMms(int id)
 {
     _configuringMmsService.DeleteConfiguringMms(id);
 }