Exemple #1
0
        public AnnotationInfo EditAnnotation(string documentId, string annotationId, AnnotationInfo annotation)
        {
            var index = ann.FindIndex(x => x.Uuid == annotationId && x.Document == documentId);

            ann[index] = annotation;
            return(annotation);
        }
Exemple #2
0
 public dynamic EditAnnotation(AnnotationInfo req)
 {
     return(storage.EditAnnotation(req.Document, req.Uuid, req));
 }
Exemple #3
0
 public AnnotationInfo AddAnnotation(AnnotationInfo annotation)
 {
     ann.Add(annotation);
     return(annotation);
 }
Exemple #4
0
 public dynamic AddAnnotation(AnnotationInfo req)
 {
     req.Uuid = Guid.NewGuid().ToString("N");
     return(storage.AddAnnotation(req));
 }