Esempio n. 1
0
 /// <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));
 }
Esempio n. 2
0
 public VotesController(IVotesServices votesServices)
 {
     _votesServices = votesServices;
 }
Esempio n. 3
0
 public VotesController(IVotesServices votesServices, UserManager <ApplicationUser> userManager)
 {
     this.votesServices = votesServices;
     this.userManager   = userManager;
 }