예제 #1
0
 /// <summary>
 /// Gets single <see cref="Dog"/> by Id
 /// </summary>        
 /// <param name="id">Dog Id integer</param>
 /// <returns>The found (mapped) <see cref="Dog"/> instance if it exists</returns>
 public async Task<Dog> GetDog(int id) =>
     _mapper.Map<Dog>(
         await _repository.FindDogById(id)
     );