CSP_Web.Controllers.CustomerController.Index C# (CSharp) Method

Index() public method

public Index ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult
        public ActionResult Index()
        {
            if (graphService.app_id != resellerService.graph_app_id || !graphService.initialized)
                graphService.Initialize(resellerService.tenant_name, resellerService.graph_app_id, resellerService.graph_app_key);

            List<Contract> contracts = graphService.GetContracts();

            return View(contracts);
        }