Пример #1
0
 public Boolean insertSource(string name, string address, string EmployeeName1, string EmployeeName2, string phone1, string phone2, string phone3)
 {
     source   = new Source();
     sourceDB = new SourceDB();
     source.setName(name);
     source.setEmployeeName1(EmployeeName1);
     source.setEmployeeName2(EmployeeName2);
     source.setAddress(address);
     source.setPhone1(phone1);
     source.setPhone2(phone2);
     source.setPhone3(phone3);
     check = sourceDB.checkSource(source);
     if (check == true)
     {
         return(false);
     }
     else
     {
         sourceDB.insert(source);
         return(true);
     }
 }