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); }
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); }
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); }
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); }