예제 #1
0
        public async Task <DataResponse <ParkingSpotDTO> > GetAll()
        {
            DataResponse <ParkingSpotDTO> response = new DataResponse <ParkingSpotDTO>();

            try
            {
                return(response = await _iParkingSpotRepository.GetAll());
            }
            catch (Exception ex)
            {
                _log.Error(ex + "\nStackTrace: " + ex.StackTrace);
                response.Errors.Add("DataBase error, contact the system owner");
                return(response);
            }
        }
 public async Task <DataResponse <ParkingSpotDTO> > GetAll()
 {
     return(await _iParkingSpotRepository.GetAll());
 }