public UsersController(voicesContext context) { _context = context; }
public UsersRepository(voicesContext context, ILogger <voicesContext> logger) { _ctx = context ?? throw new ArgumentNullException(nameof(context)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public PostsRepository(voicesContext context) { this._ctx = context; }