Пример #1
0
 public MessagesController(UserManager <AppUser> usrMgr,
                           IReplyRepo r, IMessageRepo m, IChatRepo c)
 {
     // repos
     this.replyRepo   = r;
     this.messageRepo = m;
     this.chatRepo    = c;
     // user managers
     this.userManager = usrMgr;
 }
Пример #2
0
 public ForumAPIController(UserManager <AppUser> usrMgr,
                           IReplyRepo r, IMessageRepo m, IChatRepo c, IUserRepo u)
 {
     // repos
     this.replyRepo   = r;
     this.messageRepo = m;
     this.chatRepo    = c;
     // user managers
     this.userManager = usrMgr;
     this.userRepo    = u;
 }
Пример #3
0
 public CommentController(ICommentRepo commentRepo, IReplyRepo replyRepo)
 {
     _commentRepo = commentRepo;
     _replyRepo   = replyRepo;
 }