public IHttpActionResult AddStars(int id, int NumOfStars, int RateByUser) { ErrorMessage errorMessage = usersBL.AddStars(id, NumOfStars, RateByUser); if (errorMessage.Code == HttpStatusCode.OK) { User updatedUser = usersBL.GetUser(id); return(Ok(updatedUser)); } return(new ResponseMessageResult(Request.CreateErrorResponse( errorMessage.Code, new HttpError(errorMessage.Message) ) )); }