Esempio n. 1
0
        public HttpResponseMessage DeleteOrder(int id)
        {
            ResultMsg resultMsg = new ResultMsg();

            try
            {
                using (IT_Order repository = new T_OrderRepository())
                {
                    T_Order order = new T_Order {
                        ID = id
                    };
                    repository.Delete(order);
                }
            }
            catch (Exception ex)
            {
                resultMsg.code = (int)StatusCodeEnum.Error;
                resultMsg.msg  = ex.Message;
            }
            return(resultMsg.toJson());
        }