public bool Registrace() { List <object> zakaznik = new List <object>(); Idu = 0; zakaznik.Add(Idu); zakaznik.Add(Login); zakaznik.Add(Email); zakaznik.Add(Heslo); zakaznik.Add(Krestni); zakaznik.Add(Prijmeni); zakaznik.Add(Ulice); zakaznik.Add(Mesto); zakaznik.Add(Psc); zakaznik.Add(Tel); ZakaznikGateway.Insert(zakaznik); return(true); }
/* * * public static Collection<ZakaznikModel> SelectById(int idZ) * { * Collection<Zakaznik> zakaznici = ZakaznikGateway.Detail(idZ); * Collection<ZakaznikModel> ret = new Collection<ZakaznikModel>(); * foreach (var zakaznik in zakaznici) * { * ret.Add(new ZakaznikModel(zakaznik)); * } * return ret; * } */ public static int Insert(int idz, string jmeno, string prijmeni, DateTime datum_narozeni, int Tel_cislo, string email) { return(ZakaznikGateway.Insert(idz, jmeno, prijmeni, datum_narozeni, Tel_cislo, email)); }