public ResourceController()
 {
     ResourceServices.ReloadResources();
     ViewBag.ModuleName      = moduleName;
     ViewBag.Title           = index;
     ViewBag.ReloadResources = reloadResources;
 }
Exemple #2
0
 protected void Application_Start()
 {
     AreaRegistration.RegisterAllAreas();
     FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     ResourceServices.ReloadResources();
     BundleConfig.RegisterBundles(BundleTable.Bundles);
 }
 /// <summary>
 /// Reload Resources
 /// </summary>
 /// <returns></returns>
 public ActionResult ReloadResources(ResourceVwViewModel Model)
 {
     ResourceServices.ReloadResources();
     if (Model.Filter.HasCriteria)
     {
         Db db = new Db(DbServices.ConnectionString);
         Model.List = ResourceVwServices.Get(Model.Filter, db);
     }
     else
     {
         Model.List = new List <ResourceVw>();
     }
     return(View("Index", Model));
 }