Answers for "ConfigureServices"

0

ConfigureServices

public void ConfigureServices(IServiceCollection services)
{
    // Rest of the code
    services.AddScoped<IDepartmentRepository, DepartmentRepository>();
    services.AddScoped<IEmployeeRepository, EmployeeRepository>();
}
Posted by: Guest on April-03-2022

Browse Popular Code Answers by Language