public void Edit(Dealer Dealer)
        {
            try
            {
                var bc = new DealerBusiness();
                bc.Edit(Dealer);
            }
            catch (Exception ex)
            {
                var httpError = new HttpResponseMessage()
                {
                    StatusCode   = (HttpStatusCode)422,
                    ReasonPhrase = ex.Message
                };

                throw new HttpResponseException(httpError);
            }
        }
コード例 #2
0
ファイル: DealerService.cs プロジェクト: MagninM/MCGA2017
        public void Edit(Dealer dealer)
        {
            try
            {
                var dc = new DealerBusiness();
                dealer.ChangedOn = System.DateTime.Now;
                dc.Edit(dealer);
            }
            catch (Exception ex)
            {
                var httpError = new HttpResponseMessage()
                {
                    StatusCode   = (HttpStatusCode)422,
                    ReasonPhrase = ex.Message
                };

                throw new HttpResponseException(httpError);
            }
        }
コード例 #3
0
 public void Edit(Dealer dealer)
 {
     business.Edit(dealer);
 }