Esempio n. 1
0
 /// <summary>
 /// Deletes a given reason to both Shifts and the Database.
 /// </summary>
 /// <param name="accessToken">Cached AccessToken.</param>
 /// <param name="teamsId">MS Teams Id.</param>
 /// <param name="reason">The reason.</param>
 private async Task DeleteSingleReason(string accessToken, string teamsId, TimeOffReasonResponse.TimeOffReason reason)
 {
     if (await this.DeleteTimeOffReasonAsync(accessToken, teamsId, reason.Id).ConfigureAwait(false))
     {
         await this.timeOffReasonProvider.DeleteSpecificReasons(reason.DisplayName).ConfigureAwait(false);
     }
 }
 /// <summary>
 /// Deletes a given reason to both Shifts and the Database.
 /// </summary>
 /// <param name="allRequiredConfigurations">Object containing the AccessToken.</param>
 /// <param name="teamsId">MS Teams Id.</param>
 /// <param name="reason">The reason.</param>
 private async Task DeleteSingleReason(SetupDetails allRequiredConfigurations, string teamsId, TimeOffReasonResponse.TimeOffReason reason)
 {
     if (await this.DeleteTimeOffReasonAsync(allRequiredConfigurations, teamsId, reason.Id).ConfigureAwait(false))
     {
         await this.timeOffReasonProvider.DeleteSpecificReasons(reason.DisplayName).ConfigureAwait(false);
     }
 }