コード例 #1
0
    public void updateBackWaitTips(string shift, decimal hours)
    {
        restaurant = (Restaurant)Session["Restaurant"];
        decimal tips = 0.00M;

        if (shift == Shift.Lunch.ToString())
        {
            tips = restaurant.LunchSATips;
        }
        else
        {
            tips = restaurant.DinnerSATips;
        }
        sqc = new sqlController();
        try
        {
            var tip = (tips / hours);
            sqc.UpdateBackWaitTips(shift, tip, GetDate());
        }
        catch (Exception ex)
        {
            Logger.Log(ex);
        }
        finally
        {
            sqc = null;
        }
    }