public AuthorizeService(IUserRepository userRepository, IUserRoleRepository userRoleRepository, IRoleActionRepository roleActionRepository, IApplicationActionRepository actionRepository) { _userRepository = userRepository; _userRoleRepository = userRoleRepository; _roleActionRepository = roleActionRepository; _actionRepository = actionRepository; }
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; }
/// <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; }