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

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