public async void Edit(NetworkStream stream, string content) { AccountModel dummy = JsonSerializer.Deserialize <AccountModel>(content); String input = await _accountRepo.EditAccount(dummy); string reply = JsonSerializer.Serialize(input); byte[] bytesWrite = Encoding.ASCII.GetBytes(reply); stream.Write(bytesWrite, 0, bytesWrite.Length); }