Exemplo n.º 1
0
 public static TeacherComment Create(GradebookCommect sectionComment)
 {
     return(new TeacherComment
     {
         TeacherId = sectionComment.TeacherId,
         Comment = sectionComment.Comment,
         CommentId = sectionComment.Id,
         IsSystem = sectionComment.IsSystem
     });
 }
Exemplo n.º 2
0
        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));
        }
Exemplo n.º 3
0
        public void UpdateComment(int acadSessionId, int teacherId, GradebookCommect sectionComment)
        {
            var url = BuildBaseUrl(acadSessionId, teacherId) + "/" + sectionComment.Id;

            Put(url, sectionComment);
        }
Exemplo n.º 4
0
 public GradebookCommect CreateComment(int acadSessionId, int teacherId, GradebookCommect sectionComment)
 {
     return(Post(BuildBaseUrl(acadSessionId, teacherId), sectionComment));
 }