public static void ALLDependency(IServiceCollection services) { services.AddTransient <IUnitOfWork, UnitOfWork.UnitOfWork>(); MongoDbDependency.ALLDependency(services); // services.AddTransient<IStudentRepository,StudentRepository>(); // services.AddTransient<IDepartmentRepository,DepartmentRepository>(); }
public static void RegisterDllServices(IServiceCollection services) { services.AddTransient <IUnitOfWork, UnitOfWork>(); MongoDbDependency.RegisterServices(services); }
public static void ALLDependency(IServiceCollection services) { services.AddTransient <IUnitOfWork, UnitOfWork.UnitOfWork>(); MongoDbDependency.AllDependency(services); }