/// <summary> /// Constructs an instance of the BottlesController. /// </summary> /// <param name="bottleService">An instance of class implementing the IBottleService interface.</param> public BottlesController(IBottleService bottleService, IValidator <BottleApiModel> bottleValidator, IMapper <BottleDomainModel, BottleApiModel> toApiModelMapper, IMapper <BottleApiModel, BottleDomainModel> toDomainModelMapper) { this._bottleService = bottleService; this._bottleValidator = bottleValidator; this._toApiModelMapper = toApiModelMapper; this._toDomainModelMapper = toDomainModelMapper; }
public BottlesController(IBottleService service) { _bottleService = service; }