예제 #1
0
        public async Task <ActionResult <GarageReadDto> > GetGarageByIdAsync(int id)
        {
            var garage = await _garageService.GetGarageByIdAsync(id);

            if (garage != null)
            {
                return(Ok(_mapper.Map <GarageReadDto>(garage)));
            }

            return(NotFound());
        }