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); } }
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); } }
public void Edit(Country country) { business.Edit(country); }