public async Task DeleteAsync(int id) { var result = await _repository.FindByIDAsync(id); if (result != null) { await _repository.DeleteAsync(result); } }