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


            return(await _context.SaveChangesAsync());
        }
コード例 #2
0
        public async Task <int> PutSettlement(int id, Settlement settlement)
        {
            _context.Entry(settlement).State = EntityState.Modified;

            return(await _context.SaveChangesAsync());
        }