// GET: AutofacTest public ActionResult Index() { var model = new NTCService(); model.Name = service.GetServiceName(); model.IsServiceExecuting = service.IsServiceRunning(); return(View(model)); }