public List <ActionLinkModel> GenerateActionLinkForList() { string currentArea = Request.RequestContext.RouteData.DataTokens["area"].ToString(); string currentController = this.ControllerContext.RouteData.Values["controller"].ToString(); string currentAction = this.ControllerContext.RouteData.Values["action"].ToString(); string xmlPath = "~/Files/Xml/Action/" + currentArea.ToLower() + "-" + currentController.ToLower() + "-" + currentAction.ToLower() + ".xml"; List <ActionLinkModel> actions = XmlReader.GetActionLinkForList(xmlPath); return(actions); }