Exemplo n.º 1
0
 public async Task Delete(ITimeEntry timeEntry)
 {
     try
     {
         var deleteEndpoint = endPoints.Delete(timeEntry.WorkspaceId, timeEntry.Id);
         await SendRequest <ITimeEntry>(deleteEndpoint, AuthHeader)
         .ConfigureAwait(false);
     }
     catch (NotFoundException)
     {
     }
 }
Exemplo n.º 2
0
 public IObservable <Unit> Delete(ITimeEntry timeEntry)
 => CreateObservable <ITimeEntry>(endPoints.Delete(timeEntry.WorkspaceId, timeEntry.Id), AuthHeader)
 .SingleAsync()
 .Select(_ => Unit.Default);