public async Task <ActionResult <bool> > Delete(string id) { _logger.LogDebug(" deleting {location}", id.ToString()); bool deleted = await _locationStore.DeleteAsync(id); return(deleted); }
public async Task <IActionResult> Delete([FromBody] Location location) { await _locationStore.DeleteAsync(location); return(Accepted()); }