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