public async Task <BookingResponseDM> Calculate(BookingRequestDM request, RequestPriority priority)
        {
            var api = GetApi(priority);

            var externalRequest  = MappingService.Map <BookingRequestEM>(request);
            var externalResponse = await api.Calculate(externalRequest);

            return(MappingService.Map <BookingResponseDM>(externalResponse));
        }
예제 #2
0
 public Task <BookingResponseDM> Calculate(BookingRequestDM request, RequestPriority priority)
 {
     return(BookingRepository.Calculate(request, priority));
 }
예제 #3
0
 private async Task ShowNewOrderScreen()
 {
     BookingRequest = new BookingRequestDM();
     await NavigationService.Navigate <CargoViewModel, BookingRequestDM>(BookingRequest);
 }