Exemple #1
0
 public PostVoteModel(IPostPointService postPointService, IPostService postService)
 {
     _postPointService = postPointService;
     _postService      = postService;
     _userManager      = HttpContext.Current.GetOwinContext().GetUserManager <ApplicationUserManager>();
 }
Exemple #2
0
 public PostVoteModel()
 {
     _postPointService = Startup.AutofacContainer.Resolve <IPostPointService>();
     _postService      = Startup.AutofacContainer.Resolve <IPostService>();
     _userManager      = HttpContext.Current.GetOwinContext().GetUserManager <ApplicationUserManager>();
 }