public ActionResult Create(ResourceModel model, bool continueEditing)
 {
     if (!_permissionService.Authorize(StandardPermissionProvider.ManageResource))
     {
         return(AccessDeniedView());
     }
     if (ModelState.IsValid)
     {
         var resource = new Resources
         {
             CreatedOn    = DateTime.Now,
             ResourceType = model.ResourceType.ToString()
         };
         _resourcesService.Insert(resource);
         return(RedirectToAction("Edit", new { id = resource.Id }));
         //}
     }
     return(View(model));
 }