示例#1
0
        public HomeController(Core.Services.UserService userService,
                              Core.Services.MailService mailService,
                              Core.Services.EditService editService,
                              Core.Services.LetterService letterService,
                              Core.Services.CommentService commentService,
                              Core.Services.QueueService queueService,
                              Core.Services.VoteService voteService)
        {
            _userService = userService;
            _mailService = mailService;
            _editService = editService;
            _letterService = letterService;
            _commentService = commentService;
            _queueService = queueService;
            _voteService = voteService;

            if (FormsService == null) { FormsService = new FormsAuthenticationService(); }
            if (MembershipService == null) { MembershipService = new AccountMembershipService(); }
        }
示例#2
0
 public CommentController(CommentService commentService, MailService mailService)
 {
     _commentService = commentService;
     _mailService = mailService;
 }