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);
            }
        }
Example #2
0
        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);
            }
        }
Example #3
0
 public void Edit(Dealer dealer)
 {
     business.Edit(dealer);
 }