示例#1
0
        public UserController(ILoggingService loggingService, IUnitOfWorkManager unitOfWorkManager,
            IUserService userService,
            IRoleService roleService,
            ISettingsService settingsService,
            IPostService postService,
            IUserMetaService userMetaService,
            ITopicService topicService)
            : base(loggingService, unitOfWorkManager, userService, roleService, settingsService)
        {
            this._postServive = postService;
            this._topicService = topicService;
            this._userMetaService = userMetaService;

            this.LoggedOnUser = UserIsAuthenticated ? UserService.GetUser(Username) : null;
            this.UsersRole = LoggedOnUser == null ? RoleService.GetRole(AppConstants.GuestRoleName) : LoggedOnUser.Role;
        }
示例#2
0
 public HomeController(IUserMetaService _userMetaService)
 {
     _UserMetaService = _userMetaService;
 }
示例#3
0
 public PrivateController(IUserMetaService _userMetaService)
 {
     _UserMetaService = _userMetaService;
 }
 public AccountController(IUserMetaService _userMetaService)
 {
     _UserMetaService = _userMetaService;
 }