示例#1
0
 public object Put(ToolReview toolReview)
 {
     var tReview = Repository.Store(toolReview);
     var review = ReviewRepository.GetByIdAndType(tReview.Id, ReviewRepository.TOOL_TYPE);
     ClioHubManager.EditReview(User, review);
     return review;
 }
示例#2
0
 public object Post(ToolReview toolReview)
 {
     toolReview.Created = DateTime.Now;
     var tReview = Repository.Store(toolReview);
     var review = ReviewRepository.GetByIdAndType(tReview.Id, ReviewRepository.TOOL_TYPE);
     ClioHubManager.NewReview(User, review);
     return review;
 }