示例#1
0
 public IList <LocationDTO> ListShippingLocations()
 {
     try
     {
         IList <Location> allLocations = LocationRepository.FindAll();
         var assembler = new LocationDTOAssembler();
         return(assembler.ToDTOList(allLocations));
     }
     catch (Exception exception)
     {
         throw new NDDDRemoteBookingException(exception.Message);
     }
 }
 public IList<LocationDTO> ListShippingLocations()
 {
     try
     {
         IList<Location> allLocations = LocationRepository.FindAll();
         var assembler = new LocationDTOAssembler();
         return assembler.ToDTOList(allLocations);
     }
     catch (Exception exception)
     {
         throw new NDDDRemoteBookingException(exception.Message);
     }
 }