Projekt

Obecné

Profil

« Předchozí | Další » 

Revize d7a375f5

Přidáno uživatelem Vojtěch Bartička před asi 2 roky(ů)

GET /documents returns annotationId for each annotator

Zobrazit rozdíly:

Backend/Core/Services/DocumentService/DocumentServiceEF.cs
134 134
                        .Include(a => a.Document)
135 135
                        .Single(a => a.Document == document && a.User == annotatingUser && !(a is FinalAnnotation));
136 136
                    var dui = mapper.Map<DocumentUserInfo>(annotatingUser);
137
                    dui.AnnotationId = annotation.Id;
137 138
                    dui.State = annotation.State;
138 139
                    annotatingUsersDto.Add(dui);
139 140
                }
Backend/Models/Users/DocumentUserInfo.cs
14 14
        public string Name { get; set; }
15 15
        public string Surname { get; set; }
16 16
        public EState State { get; set; }
17
        public Guid AnnotationId { get; set; }
17 18
    }
18 19
}

Také k dispozici: Unified diff