public OperationStatus SaveComment(Comment comment) { try { comment.IsApproved = !_siteSettingsService.GetSiteSettings().ModerateComments; comment.Created = DateTime.Now; CommentRepository.SaveComment(comment); } catch (Exception ex) { return new Failure(ex.Message); } return new Success(); }
public void SaveComment(Comment comment) { CUDQuery query = session => session.Save(comment); QueryExecutor.UpdateDelete(query); }