private void GenerateServices(MetaModel model, ApplicationModel application) { foreach (var service in model.Services) { var serviceModel = application.GetService(service.Name); foreach (var layer in _generators.GroupBy(g => g.Layer)) { GenerateModule(service, serviceModel.GetLayer(layer.Key), layer.ToList()); } } }