public async Task <IActionResult> OnPostDelete(string id, string bookingId)
        {
            var result = await _orderDataService.DeleteOrder(Guid.Parse(id));

            Message = "Ordren er slettet";
            return(new RedirectToPageResult("BookingSingle", new { id = bookingId }));
        }
        public async Task <IActionResult> OnPostDelete(string id)
        {
            var result = await _orderDataService.DeleteOrder(Guid.Parse(id));

            if (!result.IsSuccesfull)
            {
                return(new RedirectToPageResult("Error"));
            }
            return(new RedirectToPageResult("BookingOverviewAdmin"));
        }
Beispiel #3
0
        public async Task <IActionResult> OnPostDelete(string id)
        {
            var result = await _orderDataService.DeleteOrder(Guid.Parse(id));

            return(new RedirectToPageResult("Transporter/ReservedBookings"));
        }