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