public int CreateReview(Contract.Models.Review review, bool notify) { int id = _reviewGateway.Insert(Mapper.Map <Review>(review)); if (notify) { SendReviewNotification(review.Author, review.Email, review.Text); } return(id); }
public void UpdateReview(Contract.Models.Review review) { _reviewGateway.Update(Mapper.Map <Review>(review)); }