Example #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);
        }
Example #2
0
 public dynamic EditAnnotation(AnnotationInfo req)
 {
     return(storage.EditAnnotation(req.Document, req.Uuid, req));
 }
Example #3
0
 public AnnotationInfo AddAnnotation(AnnotationInfo annotation)
 {
     ann.Add(annotation);
     return(annotation);
 }
Example #4
0
 public dynamic AddAnnotation(AnnotationInfo req)
 {
     req.Uuid = Guid.NewGuid().ToString("N");
     return(storage.AddAnnotation(req));
 }