public MenuAdminIndexVm()
 {
     RouteParameter        = new RouteParameterVm <TKey>();
     RouteName             = new RouteNameVm <TKey>();
     MenuItemRelationGroup = new MenuItemRelationGroupVm <TKey>();
     MenuItem = new MenuItemVm <TKey, TParentId>();
     CurrentRouteMenuItems  = new List <RouteMenuItemVm <TKey, TParentId> >();
     CurrentRouteName       = new List <RouteNameVm <TKey> >();
     CurrentRouteParameters = new List <RouteParameterVm <TKey> >();
 }
 public ActionResult SaveMenuItemRelationGroup(MenuItemRelationGroupVm <int> vm)
 {
     try
     {
         _menuItemRelationGroupRepository.SaveById(new MenuItemRelationGroup
         {
             Id          = vm.Id,
             Code        = vm.Code,
             IsActive    = vm.IsActive,
             Name        = vm.Name,
             SortOrder   = vm.SortOrder,
             DateCreated = DateTime.Now,
         });
         return(Json(new { success = 1 }));
     }
     catch (Exception ex)
     {
         LogEventManager.Logger.Error(ex.Message, ex);
         return(Json(new { success = false }));
     }
     finally
     {
     }
 }