コード例 #1
0
        public async Task <ActionResult <bool> > Delete(string id)
        {
            _logger.LogDebug(" deleting {location}", id.ToString());

            bool deleted = await _locationStore.DeleteAsync(id);

            return(deleted);
        }
コード例 #2
0
        public async Task <IActionResult> Delete([FromBody] Location location)
        {
            await _locationStore.DeleteAsync(location);

            return(Accepted());
        }