public async Task <IActionResult> Index() { try { var res = new RestAccess(Constants.ServiceClientEndPointWithApiPrefix); var result = await res.GetMaintenanceInfo(); if (result.Ok && !string.IsNullOrEmpty(result.Result)) { ViewData["maintenance"] = result.Result; } } catch (Exception ex) { } return(View("IndexV2")); }