public async Task <IActionResult> Delete(Guid id) { bool deleted = await _shellTempRepository.Delete(id); if (!deleted) { return(BadRequest("Could not delete shell temperature")); } return(Ok()); }
public async Task <bool> Delete(Guid id) { bool deleted = _shellTemperatureRepository.Delete(id); return(await Task.FromResult(deleted)); }