Ejemplo n.º 1
0
        public IActionResult GetAllCarparks()
        {
            var carparksFromRepo = _parkingRepository.GetAllCarparks();

            if (carparksFromRepo == null)
            {
                return(NotFound());
            }

            var carparks = _mapper.Map <IEnumerable <CarparkMarkerDto> >(carparksFromRepo);

            return(Ok(carparks));
        }