コード例 #1
0
        public string InsertOrderJSON(Order order)
        {
            if (!CheckBasicAuthentication())
            {
                //Autenticazione non riuscita
                throw new WebFaultException(HttpStatusCode.Unauthorized);
            }

            try
            {
                DALOrders DAL    = new DALOrders();
                string    result = DAL.InsertOrder(order);

                return(result);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }