Example #1
0
        public void AddTypeOfRealty(int id, string typeRealty)
        {
            switch (typeRealty)
            {
            case "Apartment":
                database.AddApartment(id);
                break;

            case "House":
                database.AddHouse(id);
                break;

            case "Land":
                database.AddLand(id);
                break;

            default:
                return;
            }
        }