Application is trying to create an instance of Controller but it doesn't
know how to create an instance of the tyupe that is passed into the Controller constructor.
Resolve this issue by adding the dependency in Program.cs file, like so:
of which controller.
// Add scoped service in Program.cs
builder.Services.AddScoped<IService, Service>();