예제 #1
0
 public int getMaxId()
 {
     return(CargoHandler.GetMaxId());
 }
예제 #2
0
 public List <Cargo> getCargoes()
 {
     return(CargoHandler.GetCargoes());
 }
예제 #3
0
 public void updateCargo(int cargoId, double weight)
 {
     CargoHandler.UpdateCargo(cargoId, weight);
 }
예제 #4
0
 public Cargo getCargo(int cargoId)
 {
     return(CargoHandler.GetCargo(cargoId));
 }
예제 #5
0
 public void insertCargo(double weight)
 {
     CargoHandler.InsertCargo(weight);
 }
예제 #6
0
 public CargoController(ICargoRepository repository, CargoHandler handler)
 {
     _repository = repository;
     _handler    = handler;
 }