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; }
public HomeController(IUserMetaService _userMetaService) { _UserMetaService = _userMetaService; }
public PrivateController(IUserMetaService _userMetaService) { _UserMetaService = _userMetaService; }
public AccountController(IUserMetaService _userMetaService) { _UserMetaService = _userMetaService; }