コード例 #1
0
        public void Remove(int id)
        {
            try
            {
                var ob = new OrderBusiness();
                ob.Delete(id);
            }
            catch (Exception ex)
            {
                var httpError = new HttpResponseMessage()
                {
                    StatusCode   = (HttpStatusCode)422,
                    ReasonPhrase = ex.Message + "+" + ex.InnerException,
                    Content      = new StringContent(ex.Message),
                };

                throw new HttpResponseException(httpError);
            }
        }
コード例 #2
0
 public void Delete(int id)
 {
     business.Delete(id);
 }