public MenuRoleAdminController(RoleBasedMenuContext db)
 {
     InitCtx(_routeNameRepository as IContextRepository <DbContext>, db);
     InitCtx(_routeParamRepository as IContextRepository <DbContext>, db);
     InitCtx(_menuRelationRepository as IContextRepository <DbContext>, db);
     InitCtx(_menuItemRelationGroupRepository as IContextRepository <DbContext>, db);
     InitCtx(_menuItemRepository as IContextRepository <DbContext>, db);
 }
 public RolesController(RoleBasedMenuContext db)
 {
     _db = db;
 }