public async Task <IActionResult> Edit(int id, [Bind("ClimateID,Name,Description,Rain_in_Winter,Rain_during_Growing_Season,Rain_during_Harvest,Temp_in_Winter,Temp_during_Growing_Season,Temp_Continentality,Temp_Diurnal,Vintage_Variation,Proximity_to_Large_Bodies_of_Water")] Climate climate) { if (id != climate.ClimateID) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(climate); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!ClimateExists(climate.ClimateID)) { return(NotFound()); } else { throw; } } return(RedirectToAction("Index")); } return(View(climate)); }