コード例 #1
0
        public static bool DeleteOneBts(this IBtsRepository repository, ITownRepository townRepository,
                                        string districtName, string townName, string btsName)
        {
            int     townId = townRepository.GetAllList().QueryId(districtName, townName);
            CdmaBts bts    = repository.QueryBts(townId, btsName);

            if (bts == null)
            {
                return(false);
            }
            repository.Delete(bts);
            return(true);
        }