Exemple #1
0
        public async Task <ActionResult> DetailsSysRole(Guid?id)
        {
            var sysRoleService = new SysRoleService();

            if (id == null || !await sysRoleService.ExistsSysRole(id.Value))
            {
                return(RedirectToAction(nameof(SysRoleList)));
            }

            return(View(await sysRoleService.GetOneSysRoleById(id.Value)));
        }