public ActionResult Details(EquipmentPointRoleViewModel Model, string pointId) { if (!string.IsNullOrEmpty(pointId)) { ViewBag.AccessToken = _buildingService.GetAccessToken(Model.SelectedCompany); ViewBag.pointUrl = _buildingService.APIBaseUrl.AppendPathSegment("building/points").AppendPathSegment(pointId).ToString(); } return(View()); }