Esempio n. 1
0
        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);
            }
        }
Esempio n. 2
0
 public void Edit(Rating rating)
 {
     business.Edit(rating);
 }