Ejemplo n.º 1
0
        public AddressBO(IAddressConverter _AddressConverter)
        {
            context = RepositoryHelper.GetDbContext();
            uow = RepositoryHelper.GetUnitOfWork(context);
            this.entiesrepository = RepositoryHelper.GetAddressRepository(context);
			this.typeAdapter = _AddressConverter;
        }
Ejemplo n.º 2
0
 public AddressBO(IAddressConverter _AddressConverter)
 {
     context = RepositoryHelper.GetDbContext();
     uow     = RepositoryHelper.GetUnitOfWork(context);
     this.entiesrepository = RepositoryHelper.GetAddressRepository(context);
     this.typeAdapter      = _AddressConverter;
 }
        public EditInterventionFunction(IAddressConverter addressConverter)
        {
            var config = new MapperConfiguration(cfg => cfg.CreateMap <InterventionEntity, InterventionItemResponse>()
                                                 .ForMember(dest => dest.Id,
                                                            opts => opts.MapFrom(src => src.RowKey))
                                                 .ForMember(dest => dest.Comments,
                                                            opts => opts.MapFrom(src => src.GetComments())));

            _mapper           = config.CreateMapper();
            _addressConverter = addressConverter;
        }
Ejemplo n.º 4
0
 public AddInterventionFunction(IAddressConverter addressConverter, IReCaptchaService captchaService)
 {
     _addressConverter = addressConverter;
     _captchaService   = captchaService;
 }
 public AddInterventionFunction(IAddressConverter addressConverter)
 {
     _addressConverter = addressConverter;
 }