public IActionResult Save(TemperatureDataEntryModel item) { if (item.Temperature.Id == 0) { _model.New(item.Temperature); } else { _model.Update(item.Temperature); } return(View("Index", _model.GetAll())); }