/// <inheritdoc /> /// <summary> /// Initializes a new instance of the <see cref="VotesController"/> class. /// </summary> /// <param name="webConfigContainer">The web configuration container.</param> /// <param name="votesServices">The votes services.</param> /// <exception cref="ArgumentNullException"> /// webConfigContainer /// or /// votesServices /// </exception> public VotesController( IWebConfigContainer webConfigContainer, IVotesServices votesServices) { _webConfigContainer = webConfigContainer ?? throw new ArgumentNullException(nameof(webConfigContainer)); _votesServices = votesServices ?? throw new ArgumentNullException(nameof(votesServices)); }
public VotesController(IVotesServices votesServices) { _votesServices = votesServices; }
public VotesController(IVotesServices votesServices, UserManager <ApplicationUser> userManager) { this.votesServices = votesServices; this.userManager = userManager; }