public async Task <IActionResult> Edit(int id, [Bind("WF_ID,WF_NAME,WF_HEIGHT")] Waterfalls waterfalls) { if (id != waterfalls.WF_ID) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(waterfalls); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!WaterfallsExists(waterfalls.WF_ID)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(waterfalls)); }
public async Task <IActionResult> Create([Bind("WF_ID,WF_NAME,WF_HEIGHT")] Waterfalls waterfalls) { if (ModelState.IsValid) { _context.Add(waterfalls); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(waterfalls)); }
public WaterTracker(WaterConfig config, Waterfalls waterfalls) { _config = config; _waterfalls = waterfalls; }
private void Awake() { _shadowMapController = FindObjectOfType <ShadowMapController>(); _waterfalls = FindObjectOfType <Waterfalls>(); }