public void Edit(Rating rating) { try { var br = new RatingBusiness(); rating.ChangedOn = System.DateTime.Now; br.Edit(rating); } catch (Exception ex) { var httpError = new HttpResponseMessage() { StatusCode = (HttpStatusCode)422, ReasonPhrase = ex.Message }; throw new HttpResponseException(httpError); } }
public void Edit(Rating rating) { business.Edit(rating); }