public static PageInfoManager Open(System.Web.Mvc.TempDataDictionary origin) { PageInfoManager retour = null; if (retour == null && origin["PageInfo"] != null) { retour = (PageInfoManager)origin["PageInfo"]; } else { retour = new COMPONENTS.WEB.MVC.PageInfoManager(); origin["PageInfo"] = retour; } return(retour); }
public static PageInfoManager Open(System.Web.Mvc.ControllerBase origin) { PageInfoManager retour = null; if (retour == null && origin.TempData["PageInfo"] != null) { retour = (PageInfoManager)origin.TempData["PageInfo"]; } else { retour = new COMPONENTS.WEB.MVC.PageInfoManager(); origin.TempData["PageInfo"] = retour; } retour.ActionName = origin.ControllerContext.RouteData.Values["action"].ToString(); retour.controllerName = origin.ControllerContext.RouteData.Values["controller"].ToString(); return(retour); }