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)); }
public Task <BookingResponseDM> Calculate(BookingRequestDM request, RequestPriority priority) { return(BookingRepository.Calculate(request, priority)); }
private async Task ShowNewOrderScreen() { BookingRequest = new BookingRequestDM(); await NavigationService.Navigate <CargoViewModel, BookingRequestDM>(BookingRequest); }