public async Task <CheckoutResponse> SaveAsync(Checkout checkout) { try { await _checkoutRepository.AddAsync(checkout); await _unitOfWork.CompleteAsync(); return(new CheckoutResponse(checkout)); } catch (Exception ex) { return(new CheckoutResponse($"An error occurred when saving the checkout:{ex.Message}")); } }