public void Edit(LocaleResourceKey locres) { try { var blc = new LocaleResourceKeyBusiness(); blc.Edit(locres); } catch (Exception ex) { var httpError = new HttpResponseMessage() { StatusCode = (HttpStatusCode)422, ReasonPhrase = ex.Message }; throw new HttpResponseException(httpError); } }
public FindResponseLocaleResourceKey Find(int id) { try { var response = new FindResponseLocaleResourceKey(); var blc = new LocaleResourceKeyBusiness(); response.Result = blc.Find(id); return(response); } catch (Exception ex) { var httpError = new HttpResponseMessage() { StatusCode = (HttpStatusCode)422, ReasonPhrase = ex.Message }; throw new HttpResponseException(httpError); } }