Ejemplo n.º 1
0
        public void RegisterPrivateCustomer(string name, string address, string phone, string dob, string gender)
        {
            CustomerPrivate CP = new CustomerPrivate();
            CP.Name = name;
            CP.Address = address;
            CP.Phone = phone;
            CP.DOB = dob;

            if (gender == "Male")
                CP.Gender = Gender.Male;
            else if (gender == "Female")
                CP.Gender = Gender.Female;
            else if (gender == "Transgender")
                CP.Gender = Gender.Transgender;
            else if (gender == "InBetween")
                CP.Gender = Gender.InBetween;
            else CP.Gender = Gender.Male;
            //save customer.
        }
Ejemplo n.º 2
0
 public void MakeContractSale(Car v, CustomerPrivate c, DateTime d)
 {
     ContractSale Contract = new ContractSale();
     Contract.Car = v;
     Contract.Customer = c;
     Contract.DateSold = d;
     //Implement foundation.saveContractSale with Contract lloloooloololollolololololololol
 }