Esempio n. 1
0
 public BansService(
     IUsersBansRepository usersBansRepository,
     IConversationsBansRepository conversationsBansRepository,
     IUsersRepository usersRepository,
     IConversationRepository conversationRepository,
     IUsersConversationsRepository usersConversationsRepository,
     UnitOfWork unitOfWork,
     IChatRolesRepository rolesRepository)
 {
     UsersBansRepository               = usersBansRepository;
     ConversationsBansRepository       = conversationsBansRepository;
     this.usersRepository              = usersRepository;
     ConversationRepository            = conversationRepository;
     this.usersConversationsRepository = usersConversationsRepository;
     this.unitOfWork      = unitOfWork;
     this.rolesRepository = rolesRepository;
 }
Esempio n. 2
0
 public UsersConversationsRepository(ApplicationDbContext dbContext,
                                     IMessagesRepository messages, IConversationsBansRepository conversationsBans) : base(dbContext)
 {
     this.messages          = messages;
     this.conversationsBans = conversationsBans;
 }