public async Task <IActionResult> Update(Light l) { try { await _service.UpdateAsync(l); return(RedirectToAction("Index")); } catch { return(View("CU_Failed")); } }
public async Task <IActionResult> Update(Light l) { try { await _service.UpdateAsync(l); return(RedirectToAction("Index")); } catch { return(View("CU_Failed")); } }