Пример #1
0
        public Boolean IsAppRunning( MvcContext ctx )
        {
            GroupAppService userAppService = new GroupAppService();
            IMemberApp app = userAppService.GetByApp( (IApp)ctx.app.obj );
            if (app == null || app.IsStop == 1)
                throw ctx.ex( HttpStatus.NotFound_404, lang.get( "exAppNotFound" ) );

            return app.IsStop == 0;
        }
Пример #2
0
        public virtual Boolean IsAppRunning( MvcContext ctx )
        {
            GroupAppService userAppService = new GroupAppService();
            IMemberApp app = userAppService.GetByApp( (IApp)ctx.app.obj );
            if (app == null || app.IsStop == 1) {
                return false;
            }

            return true;
        }