public async Task OnGet(int?id, int PickUpLocationId, int DropDownLocationId, DateTime reserveFrom, DateTime reserveTo) { Car = await carManager.GetCar((int)id); ReserveFrom = reserveFrom; ReserveTo = reserveTo; this.PickUpLocationId = PickUpLocationId; this.DropDownLocationId = DropDownLocationId; TotalPrice = ((int)Math.Abs((reserveFrom - reserveTo).TotalDays) + 1) * Car.Price; string userId = User.FindFirstValue(ClaimTypes.NameIdentifier); PreviousBillingDatas = (await reservationManager.GetBillingDatasForUser(userId)).Select(b => new SelectListItem { Text = b.FirstName + " " + b.LastName + " " + b.Address + ", " + b.City, Value = b.Id.ToString() }); }