コード例 #1
0
        public async Task <IActionResult> Delete(long id)
        {
            var cert = new Locations {
                Id = id
            };

            _divectx.Remove(cert);
            await _divectx.SaveChangesAsync();

            return(NoContent());
        }
コード例 #2
0
        public async Task <IActionResult> Delete(long id)
        {
            var div = new Dives {
                Id = id
            };

            _divectx.Remove(div);
            await _divectx.SaveChangesAsync();

            return(NoContent());
        }