public static TeacherComment Create(GradebookCommect sectionComment) { return(new TeacherComment { TeacherId = sectionComment.TeacherId, Comment = sectionComment.Comment, CommentId = sectionComment.Id, IsSystem = sectionComment.IsSystem }); }
public TeacherComment EditComment(int commentId, int teacherId, string comment) { EnsureIsDistrictAdminOrCurrentTeacher(teacherId); var syId = ServiceLocator.SchoolYearService.GetCurrentSchoolYear().Id; var stiComment = new GradebookCommect { Comment = comment, TeacherId = teacherId, Id = commentId }; ConnectorLocator.SectionCommentConnector.UpdateComment(syId, teacherId, stiComment); return(TeacherComment.Create(stiComment)); }
public void UpdateComment(int acadSessionId, int teacherId, GradebookCommect sectionComment) { var url = BuildBaseUrl(acadSessionId, teacherId) + "/" + sectionComment.Id; Put(url, sectionComment); }
public GradebookCommect CreateComment(int acadSessionId, int teacherId, GradebookCommect sectionComment) { return(Post(BuildBaseUrl(acadSessionId, teacherId), sectionComment)); }