public async Task <ApiResult> Deletes([FromBody] CommonDeleteInput commonDeleteInput) { foreach (var item in commonDeleteInput.Ids) { await _siteService.UpdateAsync(d => new Site() { IsDel = false }, d => d.Id == item); } return(new ApiResult()); }
public async Task <ApiResult> Deletes([FromBody] CommonDeleteInput commonDeleteInput) { foreach (var item in commonDeleteInput.Ids) { await _menuService.UpdateAsync(d => new Menu() { Status = false }, d => d.Id == item); } //await _menuService.DeleteAsync(commonDeleteInput.Ids) return(new ApiResult()); }
public async Task <ApiResult> Deletes([FromBody] CommonDeleteInput commonDeleteInput) { return(new ApiResult(await _roleService.DeleteAsync(commonDeleteInput.Ids))); }
public async Task <ApiResult> Deletes([FromBody] CommonDeleteInput commonDeleteInput) { return(await _userService.DeletesAsync(commonDeleteInput.Ids)); }