Exemple #1
0
        public string UpdateAllFlatType(UpdateFlatTypeModel model)
        {
            FlatService fs = new FlatService();

            if (model.TowerID == 0)
            {
                if (model.FloorID == 0)
                {
                    return("0");
                }
                else
                {
                    fs.UpdateFlatTypeAllTowerPerFloor(model);
                }
            }
            else
            {
                if (model.FloorID == 0)
                {
                    fs.UpdateFlatTypePerTowerAllFloor(model);
                }
                else
                {
                    fs.UpdateFlatTypePerTowerPerFloor(model);
                }
            }
            return("1");
        }