public AdminPageModel() { WorkContext = EngineContext.Current.Resolve <WorkContext>(); UserId = WorkContext.GetUserId(0); }