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