Exemplo n.º 1
0
 public ArtistController(IArtistRepo artistRepo,
                         IMapper mapper,
                         ILinkService <ArtistDto, ArtistResourceParameters> linkService)
 {
     _artistRepo  = artistRepo;
     _mapper      = mapper;
     _linkService = linkService;
 }
Exemplo n.º 2
0
 public Service(string conn)
 {
     this._conn       = conn;
     _artistRepo      = new ArtistDbRepo(_conn);
     _employeeRepo    = new EmployeesDbRepo(_conn);
     _officeRepo      = new OfficeDbRepo(_conn);
     _showRepo        = new ShowDbRepo(_conn);
     _transactionRepo = new TransDbRepo(_conn);
 }
Exemplo n.º 3
0
 public IArtistRepo GetArtistRep()
 {
     return arRep != null ? arRep : arRep = new ArtistRepository();
 }
 public ArtistsController([FromServices] IArtistRepo artistRepo)
 {
     this.ArtistRepo = artistRepo;
 }
Exemplo n.º 5
0
 public ArtistsController(IArtistRepo repository)
 {
     _repo = repository;
 }
Exemplo n.º 6
0
 public ArtistValuesController(IArtistRepo _repo) => repo = _repo;
Exemplo n.º 7
0
 public IArtistRepo GetArtistRep()
 {
     return(arRep != null ? arRep : arRep = new ArtistRepository());
 }