예제 #1
0
 public ComplexController(IRepository complexRepository, ILogger <ComplexController> logger,
                          IRoomServiceSender rss, IAddressRequest ar, IRoomRequest rr)
 {
     _complexRepository = complexRepository ?? throw new ArgumentNullException(nameof(complexRepository), "Complex repo cannot be null");
     _log = logger;
     _roomServiceSender = rss;
     _addressRequest    = ar;
     _roomRequest       = rr;
 }
        public IAddressRequestMessageDto BuildAddressRequestMessageDto(IAddressRequest entity)
        {
            var dto = mapper.CreateDtoBase <AddressRequestMessageDto>(entity);

            return(mapper.MapAdressRequestMessageDto(entity, dto));
        }
        public IBaseAddressRequestDto BuildEntityToBaseDto(IAddressRequest entity)
        {
            var dto = mapper.CreateDtoBase <BaseAddressRequestDto>(entity);

            return(dto);
        }