Esempio n. 1
0
        public IActionResult OnGet(Guid id)
        {
            var res = _sysRoleService.DeleteRole(id, UserId);

            AjaxData.Message = res.Message;
            AjaxData.Code    = res.Status ? 0 : 2001;
            return(Json(AjaxData));
        }
Esempio n. 2
0
        public IActionResult Delete(string id)
        {
            var res = _sysRoleService.DeleteRole(id, UserId);

            AjaxData.Message = res.Message;
            AjaxData.Success = res.Status;
            return(Json(AjaxData));
        }