/// <summary> /// 删除角色 /// </summary> /// <param name="ID"></param> /// <returns></returns> public Result DelDept(string ID) { dept.Delete(new Guid(ID)); return(new Result(true, "删除成功", null)); }
public async Task <IActionResult> Delete(int id = 0) { await _deptService.Delete(id); return(SuccessJsonResult()); }