Exemple #1
0
 public AuthorizeService(IUserRepository userRepository, IUserRoleRepository userRoleRepository, IRoleActionRepository roleActionRepository, IApplicationActionRepository actionRepository)
 {
     _userRepository       = userRepository;
     _userRoleRepository   = userRoleRepository;
     _roleActionRepository = roleActionRepository;
     _actionRepository     = actionRepository;
 }
Exemple #2
0
 public ConfigController(IMenuRepository menu,
                         IRoleMenuRepository rolemenu,
                         IRoleRepository role,
                         IUserRepository user,
                         IUserRoleRepository userrole,
                         IEventLogRepository eventlog,
                         IGuestBookRepository guestbook,
                         IMenuActionRepository menuaction,
                         IRoleActionRepository roleaction)
 {
     MenuRepository       = menu;
     RoleMenuRepository   = rolemenu;
     RoleRepository       = role;
     UserRepository       = user;
     UserRoleRepository   = userrole;
     LogRepository        = eventlog;
     GuestBookRepository  = guestbook;
     MenuActionRepository = menuaction;
     RoleActionRepository = roleaction;
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RoleActionService"/> class.
 /// </summary>
 /// <param name="roleActionRepository">The roleActionRepository<see cref="IRoleActionRepository"/></param>
 /// <param name="unitOfWork">The unitOfWork<see cref="IUnitOfWork"/></param>
 public RoleActionService(IRoleActionRepository roleActionRepository, IUnitOfWork unitOfWork)
 {
     this.roleActionRepository = roleActionRepository;
     this.unitOfWork           = unitOfWork;
 }