public async Task <IActionResult> Delete(IEnumerable <ShellTemp> shellTemps) { bool deleted = await _shellTempRepository.DeleteRange(shellTemps); if (!deleted) { return(BadRequest("Failed to delete shell temperatures")); } return(Ok()); }
public async Task <bool> DeleteRange(IEnumerable <ShellTemp> items) { bool allDeleted = _shellTemperatureRepository.DeleteRange(items); return(await Task.FromResult(allDeleted)); }