public async Task <IActionResult> Update(ShellTemp shellTemp) { bool updated = await _shellTempRepository.Update(shellTemp); if (!updated) { return(BadRequest("Could not update the shell temperature")); } return(Ok()); }
public async Task <bool> Update(ShellTemp model) { bool updated = _shellTemperatureRepository.Update(model); return(await Task.FromResult(updated)); }