コード例 #1
0
        public async Task <List <Notes> > getNotesInfo(String locationId, String tenantName, String tenantId)
        {
            IStatefulNotesApi noteinfo = ServiceProxy.Create <IStatefulNotesApi>(
                new Uri(uriString: "fabric:/NotesApp/NotesApi"),
                new ServicePartitionKey(0));

            List <Notes> output = await noteinfo.getNotes(locationId, tenantName, tenantId);

            return(output);
        }
コード例 #2
0
        public async Task <List <Notes> > updateNote([FromBody] UpdateNotes note)
        {
            IStatefulNotesApi noteinfo = ServiceProxy.Create <IStatefulNotesApi>(
                new Uri(uriString: "fabric:/NotesApp/NotesApi"),
                new ServicePartitionKey(0));

            List <Notes> output = await noteinfo.updateNote(note.NoteId, note.DiagramId,
                                                            note.LocationId, note.ModifiedDateTime, note.NoteJson, note.TenantName, note.TenantId);

            return(output);
        }
コード例 #3
0
        public async Task <List <Notes> > deleteNote(string noteId, string tenantName, String tenantId)
        {
            IStatefulNotesApi noteinfo = ServiceProxy.Create <IStatefulNotesApi>(
                new Uri(uriString: "fabric:/NotesApp/NotesApi"),
                new ServicePartitionKey(0));

            List <Notes> list = new List <Notes>();

            list = await noteinfo.deleteNote(noteId, tenantName, tenantId);

            return(list);
        }
コード例 #4
0
        public async Task <List <Notes> > saveNotes([FromBody] Notes note)
        {
            IStatefulNotesApi noteinfo = ServiceProxy.Create <IStatefulNotesApi>(
                new Uri(uriString: "fabric:/NotesApp/NotesApi"),
                new ServicePartitionKey(0));

            List <Notes> list = new List <Notes>();

            list = await noteinfo.saveNote(note.DiagramId, note.LocationId, note.NoteId,
                                           note.CreatedDateTime, note.NoteJson, note.TenantName, note.TenantId);

            return(list);
        }