Exemplo n.º 1
0
        public async Task <List <Notes> > GetNotesAsync(string Uri)
        {
            RESTClientService <Notes> restClient = new RESTClientService <Notes>();
            var notes = await restClient.GetListAsync(Uri);

            return(notes);
        }
Exemplo n.º 2
0
 public async Task PutNotesAsync(string Uri, int id, PUTNote note)
 {
     RESTClientService <PUTNote> restClient = new RESTClientService <PUTNote>();
     var result = await restClient.PutAsync(Uri, id, note);
 }
Exemplo n.º 3
0
 public async Task DeleteAllNotesAsync(string Uri, string action)
 {
     RESTClientService <PUTNote> restClient = new RESTClientService <PUTNote>();
     var result = await restClient.DeleteAllAsync(Uri, action);
 }
Exemplo n.º 4
0
 public async Task DeleteNotesAsync(string Uri, int id)
 {
     RESTClientService <PUTNote> restClient = new RESTClientService <PUTNote>();
     var result = await restClient.DeleteAsync(Uri, id);
 }
Exemplo n.º 5
0
 public async Task PostNotesAsync(string Uri, Notes note)
 {
     RESTClientService <Notes> restClient = new RESTClientService <Notes>();
     var result = await restClient.PostAsync(Uri, note);
 }