Beispiel #1
0
//save order method
    public void SaveOrder(Order theOrder)
    {
        try
        {
            //save to DB
            OrderDA.AddNewOrder(theOrder);
        }
        catch (SqlException ex)
        {
            throw new SavingException("Something went wrong saving your order. Please send us a message via the Contact Page.");
            //error saving to DB
        }

        finally { }
    }