Example #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;
 }
Example #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;
 }
 public CommentController(ICommentRepo commentRepo, IReplyRepo replyRepo)
 {
     _commentRepo = commentRepo;
     _replyRepo   = replyRepo;
 }