Exemple #1
0
        public void SaveFranchise(string name)
        {
            Franchises franchises = new Franchises
            {
                Name = name
            };

            franchises.Save(ApS.Databases.SqlAction.Insert);
        }
Exemple #2
0
        public Franchises GetFranchise(int nummer)
        {
            Franchises franchises = new Franchises
            {
                Where = "Nummer = " + nummer
            };

            franchises.Read();
            return(franchises);
        }
Exemple #3
0
        public void DeleteFranchise(int nummer)
        {
            Franchises franchises = new Franchises
            {
                Where = "Nummer = " + nummer
            };

            franchises.Read();
            if (!franchises.EoF)
            {
                franchises.Delete();
            }
        }