public async Task <DataResponse <ParkingSpotDTO> > GetActives() { DataResponse <ParkingSpotDTO> response = new DataResponse <ParkingSpotDTO>(); try { return(response = await _iParkingSpotRepository.GetActives()); } 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> > GetActives() { return(await _iParkingSpotRepository.GetActives()); }