1: コンテンツを文字列形式、JSON 文字列配列などで返す必要がある場合のみ。
context.Response.Write(resultPrice.ToString());
2: 画像を返したい場合はストリーム形式を使用します
bitmap.Save(context.Response.OutputStream, System.Drawing.Imaging.ImageFormat.Jpeg);
3: txt ドキュメントなどのファイルが返された場合、ダウンロードするためにクライアントに提供されます。
context.Response.WriteFile("テキストインスタンス.txt");