I have create a web api using Interface but I have a issue .
Severity Code Description Project File Line Suppression State
Error CS0311 The type 'WebApiEF.EmpServices.EmpServices' cannot be used as type parameter 'TImplementation' in the generic type or method 'ServiceCollectionServiceExtensions.AddScoped
builder.Services.AddScoped

Bohdan StupakRank #479 · 5.2K reputationPosted Jan 3, 2022, 5:55 AM EST