public void ConfigureServices(IServiceCollection services)
{
services.AddTransient<IUserService, UserService>();
services.AddControllersWithViews();
services.AddOptions();
services.AddMvc();
}
An error occurred while starting the application. AggregateException: Some services are not able to be constructed (Error while validating the service descriptor 'ServiceType: DataServiceLayer.OperationInfrastructure.IUserService Lifetime: Transient ImplementationType: DataServiceLayer.OperationService.UserService': Unable to resolve service for type 'DataAccessLayer.Operation.IUsersRepository' while attempting to activate 'DataServiceLayer.OperationService.UserService'.)