public async Task <AbsenceTransaction> GetAsync(string employeeId, DateTime?date, AbsenceCauseCode?code) { return(await BaseGet(employeeId, date?.ToString(APIConstants.DateFormat), code?.GetStringValue()).ConfigureAwait(false)); }
/// <summary> /// Deletes a absenceTransaction /// </summary> /// <param name="employeeId"></param> /// <param name="date"></param> /// <param name="code"></param> public void Delete(string employeeId, DateTime?date, AbsenceCauseCode?code) { DeleteAsync(employeeId, date, code).Wait(); }
public async Task DeleteAsync(string employeeId, DateTime?date, AbsenceCauseCode?code) { await BaseDelete(employeeId, date?.ToString(APIConstants.DateFormat), code?.GetStringValue()).ConfigureAwait(false); }
/// <summary> /// Gets a absenceTransaction /// </summary> /// <param name="employeeId"></param> /// <param name="date"></param> /// <param name="code"></param> /// <returns>The found absenceTransaction</returns> public AbsenceTransaction Get(string employeeId, DateTime?date, AbsenceCauseCode?code) { return(GetAsync(employeeId, date, code).Result); }