示例#1
0
        public async Task <IActionResult> Update(Light l)
        {
            try
            {
                await _service.UpdateAsync(l);

                return(RedirectToAction("Index"));
            }
            catch
            {
                return(View("CU_Failed"));
            }
        }