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); }
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); }