/// <summary> /// Finds the by identifier asynchronous. /// </summary> /// <param name="id">The identifier.</param> /// <param name="token">The cancellation token that can be used by other objects or threads to receive notice of cancellation.</param> /// <returns>Task<EmployeeModel>.</returns> public Task <EmployeeModel> FindByIdAsync(int id, CancellationToken token) { token.ThrowIfCancellationRequested(); return(Task.Run(() => _emp.Employee(id))); }