コード例 #1
0
        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);
            }
        }
コード例 #2
0
 public async Task <DataResponse <ParkingSpotDTO> > GetActives()
 {
     return(await _iParkingSpotRepository.GetActives());
 }