2

Why it is not working?

This is my controller.

public class OperatorsController : BaseController
{
    private readonly IOperatorService userService;
    public OperatorsController(IOperatorService userService)
    {
        this.userService = userService;
    }

    public ActionResult Index()
    {
        return View();
    }
}
Mosh Feu
  • 28,354
  • 16
  • 88
  • 135
Michael Gordeev
  • 21
  • 1
  • 1
  • 3

1 Answers1

4

You should explore the answers to this question. You likely have forgotten to map IOperatorService to a concrete class in your Unity container.

Community
  • 1
  • 1
Kit
  • 20,354
  • 4
  • 60
  • 103