Example #1
0
 private ForumController(IForumCategoryRepository forumcategoryRepository, IMailService mail)
 {
     ViewBag.IsAdmin = false;
     _mail = mail;
     _forumcategoryRepository = forumcategoryRepository;
     _mu = MembershipWrapper.GetUser();
     if (_mu != null)
     {
         _ua = new UserAccount(Convert.ToInt32(_mu.ProviderUserKey));
     }
 }
Example #2
0
 private HomeController(IForumCategoryRepository forumcategoryRepository)
 {
     _mu = MembershipWrapper.GetUser();
     _forumcategoryRepository = forumcategoryRepository;
 }