示例#1
0
        public async Task <int> PutRoad(int id, Road road)
        {
            _context.Entry(road).State = EntityState.Modified;


            return(await _context.SaveChangesAsync());
        }
        public async Task <int> PutSettlement(int id, Settlement settlement)
        {
            _context.Entry(settlement).State = EntityState.Modified;

            return(await _context.SaveChangesAsync());
        }