public MesAnnoncesController(IAnnoncesRepository repository)
 {
     annoncesRepository = repository;
     secRepository      = new SectionRepository();
     catRepository      = new CategoryRepository();
     deviseRepository   = new DeviseRepository();
     condRepository     = new ItemConditionRepository();
 }
        public AnnoncesController(IAnnoncesRepository repository)
        {
            annoncesRepository = repository;

            adtypeRepository  = new AnnoncesTypeRepository();
            communeRepository = new CommuneRepository();
            deviseRepository  = new DeviseRepository();
            condRepository    = new ItemConditionRepository();
            secRepository     = new SectionRepository();
            catRepository     = new CategoryRepository();
            imageRepository   = new AnnoncesImageRepository();
        }
示例#3
0
 public DeviseService(IDeviseRepository repository, IMapper mapper) : base(repository)
 {
     this.repository = repository ?? throw new ArgumentNullException(nameof(repository));
     this.mapper     = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
示例#4
0
 public DeviseServices(IDeviseRepository dvs)
 {
     _DeviseRepository = dvs;
 }
示例#5
0
 public DeviseService(IDeviseRepository DeviseRepository)
     : base(DeviseRepository)
 {
 }