public CommentVoteModel(ICommentService commentService, ICommentPointService commentPointService) { _commentService = commentService; _commentPointService = commentPointService; _userManager = HttpContext.Current.GetOwinContext().GetUserManager <ApplicationUserManager>(); }
public CommentVoteModel() { _commentPointService = Startup.AutofacContainer.Resolve <ICommentPointService>(); _commentService = Startup.AutofacContainer.Resolve <ICommentService>(); _userManager = HttpContext.Current.GetOwinContext().GetUserManager <ApplicationUserManager>(); }