public async Task <Time> GetById(int id) { try { var item = await _repository.GetByIDAsync(id); var result = _mapper.Map <Time>(item); return(result); } catch (Exception e) { _logger.LogError($"There is a problem with find Time : {e}"); } return(null); }