public EventsController(IMapper mapper, IEventsRepository gamesRepository, IOrderByPropertyMappingService <EventDto, Event> orderByPropertyMappingService, IEntityUpdater <Event, Guid> entityUpdater) : base(mapper, gamesRepository, entityUpdater, orderByPropertyMappingService) { }
public GamesController(IMapper mapper, IGamesRepository gamesRepository, IOrderByPropertyMappingService <GameDto, Game> orderByPropertyMappingService, IEntityUpdater <Game, Guid> entityUpdater) : base(mapper, gamesRepository, entityUpdater, orderByPropertyMappingService) { }
public PlayersController(IMapper mapper, IPlayersRepository playersRepository, IOrderByPropertyMappingService <PlayerDto, Player> orderByPropertyMappingService, IEntityUpdater <Player, Guid> entityUpdater) : base(mapper, playersRepository, entityUpdater, orderByPropertyMappingService) { }
public SitesController(IMapper mapper, ISitesRepository gamesRepository, IOrderByPropertyMappingService <SiteDto, Site> orderByPropertyMappingService, IEntityUpdater <Site, Guid> entityUpdater, ILogger <SitesController> logger) : base(mapper, gamesRepository, entityUpdater, orderByPropertyMappingService, logger: logger) { }
public PlayerCollectionsController( IMapper mapper, IPlayersRepository playersRepository, IOrderByPropertyMappingService <PlayerDto, Player> orderByPropertyMappingService, IEntityUpdater <Player, Guid> entityUpdater ) : base(mapper, playersRepository, entityUpdater, orderByPropertyMappingService) { _playersRepository = NullX.Throw(playersRepository, nameof(playersRepository)); }
public TestResourceController( IMapper mapper, IResourceRepository <TestEntity, Guid> resourceRepository, IOrderByPropertyMappingService <TestDto, TestEntity> orderByPropertyMappingService, IEntityUpdater <TestEntity, Guid> entityUpdater, Action <HateoasConfig> config = null) : base(mapper, resourceRepository, entityUpdater, orderByPropertyMappingService, config) { }
/// <summary> /// /// </summary> /// <param name="mapper">AutoMapper instance</param> /// <param name="resourceRepository">Resource repository instance</param> /// <param name="entityUpdater">Entity ID Updater required for Upserts </param> /// <param name="orderByPropertyMappingService">Optional services to map resource property names to entity property names</param> /// <param name="config">Optional configuration overides.</param> /// <param name="logger">Optional logger.</param> protected ResourceControllerBase([NotNull] IMapper mapper, [NotNull] IResourceRepository <TEntity, TId> resourceRepository, IEntityUpdater <TEntity, TId> entityUpdater, IOrderByPropertyMappingService <TDto, TEntity> orderByPropertyMappingService = null, Action <HateoasConfig> config = null, ILogger <ResourceControllerBase <TDto, TEntity, TId> > logger = null) { Logger = logger; ConfigureHateoas(config); Mapper = NullX.Throw(mapper, nameof(mapper)); _restResourceRepository = NullX.Throw(resourceRepository, nameof(resourceRepository)); _orderByPropertyMappingService = NullX.Throw(orderByPropertyMappingService, nameof(orderByPropertyMappingService)); _entityUpdater = NullX.Throw(entityUpdater, nameof(entityUpdater)); }