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

                throw new HttpResponseException(httpError);
            }
        }
Exemplo n.º 2
0
        public void Edit(Country country)
        {
            try
            {
                var bc = new CountryBusiness();
                country.ChangedOn = System.DateTime.Now;
                bc.Edit(country);
            }
            catch (Exception ex)
            {
                var httpError = new HttpResponseMessage()
                {
                    StatusCode   = (HttpStatusCode)422,
                    ReasonPhrase = ex.Message
                };

                throw new HttpResponseException(httpError);
            }
        }
Exemplo n.º 3
0
 public void Edit(Country country)
 {
     business.Edit(country);
 }