예제 #1
0
        public override Task OnViewInitializedAsync(Dictionary <string, string> navigationParameters)
        {
            bookingDate = NavigationParameterParser.StringDateTicksToDateTime(
                navigationParameters[BookingDateInTicksParameterKey]);

            DateTitle = DateTimeToStringHelper.GetTitleFromDate(bookingDate);

            return(base.OnViewInitializedAsync(navigationParameters));
        }
        public override async Task OnViewInitializedAsync(Dictionary <string, string> navigationParameters)
        {
            booking = NavigationParameterParser.JsonConvertParameter <CarBooking>(
                navigationParameters[BookingParameterKey]);

            var bookingTitle = DateTimeToStringHelper.GetTitleFromDate(booking.BookingStartDate);

            DateTitle = $"{bookingTitle}{System.Environment.NewLine}by {booking.BookerName}";

            var user = await _authenticationService.GetProfileAsync();

            IsBooker = booking.BookerId == user.UserId;
        }