public void SaveComment(string comment) { var currentUserId = WebSecurity.CurrentUserId; var newComment = new ProjectComment { CommentText = comment, ProjectId = ProjectId, UserId = currentUserId, CommentingDate = DateTime.Now }; ProjectManagementService.SaveComment(newComment); }
public void SaveComment(ProjectComment comment) { using (var repositoriesContainer = new LmPlatformRepositoriesContainer()) { repositoriesContainer.ProjectCommentsRepository.Save(comment); repositoriesContainer.ApplyChanges(); } }