public RoleService(IControlRoomUnitOfWork unitOfWork) { this.unitOfWork = unitOfWork; roleRepository = unitOfWork.RoleRepository; operationCategoryRepository = unitOfWork.OperationCategoryRepository; operationRepository = unitOfWork.OperationRepository; menuRepository = unitOfWork.MenuRepository; }
public AuthorizationService(IControlRoomUnitOfWork unitOfWork) { this.unitOfWork = unitOfWork; operationCategoryRepository = unitOfWork.OperationCategoryRepository; operationRepository = unitOfWork.OperationRepository; roleRepository = unitOfWork.RoleRepository; userRepository = unitOfWork.UserRepository; pageRepository = unitOfWork.PageRepository; menuRepository = unitOfWork.MenuRepository; }