問題:
- 大量のデータ(約5MB)を変更するカスタムコントローラーアクションがあります。
- このデータを別のコントローラーアクションに渡す必要がありますが、変更は許可されていません。
これを行うための最良の方法は何ですか?
通常のRedirectToActionは、巨大なデータ投稿になります。
他のコントローラーを変更してtempdataを読み取ることはできないため、TempDataを回避策として使用することはできません。
[HttpPost, ActionName("Import")]
public ActionResult ImportPost(int id)
{
var bigData = GetBigData(id);
bigData = ManipulateBigDataIntoFormatOtherControllerUnderstands(bigData);
// TODO: redirect to other controller (which has HttpPost attribute), somehow??
}