Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
チェックボックスを含む強く型付けされたViewModelがあります。
コントローラで更新を処理しているときに、アイテムがチェックされているかどうかを確認する必要があります。
どうすればそれを行うことができますか?
[HttpPost] public ActionResult Update(MyViewModel viewModel) { var isChecked = viewModel.ThePropertyUsedWithYourCheckBoxFor; }
または、私は何かが欠けていますか?