コード例 #1
0
ファイル: AddCustomer.cs プロジェクト: zeroJava/PetShop
 public AddCustomer(string firstname, string lastname, short age, string address)
 {
     customer = new Customers();
     customer.FIRSTNAME = firstname.ToUpper();
     customer.LASTNAME = lastname.ToUpper();
     customer.AGE = age;
     customer.ADDRESS = address.ToUpper();
 }
コード例 #2
0
ファイル: AddAnimalSold.cs プロジェクト: zeroJava/PetShop
        public AddAnimalSold(int animalID, AddCustomer customer)
        {
            _id = animalID;
            customer.executeBusinessLogic();
            _customer = customer.getCustomer();

            animalsold = new AnimalSolds();
            animalsold.OWNER_ID = _customer.ID;
            animalsold.ANIMAL_ID = animalID;
        }