public static IServiceCollection RegisterServicesFromModule <T>(this IServiceCollection services)
            where T : IServicesModule
        {
            IServicesModule module = Activator.CreateInstance <T>();

            module.Register(services);
            return(services);
        }
 public static IServiceCollection RegisterServicesFromModule(this IServiceCollection services,
                                                             IServicesModule module)
 {
     module.Register(services);
     return(services);
 }