public CalculatorController(IcalculatorService service) { if (service == null) { throw new ArgumentNullException("Service", "Argument cannot be null"); } _Calculatorservice = service; }
//constructor public HomeController(IcalculatorService service) { _service = service; }