using Microsoft.Extensions.DependencyInjection; using NXWMS.Service.ERP; using System; using System.Collections.Generic; using System.Text; namespace Microsoft.Extensions.DependencyInjection { public static class ERPCollectionExtensions { public static IServiceCollection AddErpInterface(this IServiceCollection services,Action action=null) { if (action != null) { services.Configure(action); } services.AddHttpClient(); return services; } } }