Beispiel #1
0
 public Guest insertGuest(Guest g)
 {
     if (g.InfoID == null)
     {
         g.InfoID = "unk" + (int)(gDb.getMaxUnk() + 1);
         Console.WriteLine("guest id" + " " + g.InfoID);
     }
     if (gDb.insert(g))
     {
         return(g);
     }
     else
     {
         return(null);
     }
 }