public async Task <IActionResult> Create(SysDepartmentViewModel model) { try { await _departmentService.SaveSysDepartment(model); return(RedirectToAction("Index")); } catch (Exception ex) { return(View(model)); } return(View(model)); }