Beispiel #1
0
        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);
        }