private void InitChildViewBag(PurchaseInvoiceDetailViewModel info) { //ViewBag.PriceKindList = // new SelectList(this._GlobalService.GetPriceKindList(), "Key", "Value", info?.PriceKindID); //ViewBag.ConditionKindList = // new SelectList(this._GlobalService.GetConditionKindList(), "Key", "Value", info?.ConditionID); }
public ActionResult _Item(string id) { //child action don't share the same ViewBag with its “parents” action var info = new PurchaseInvoiceDetailViewModel() { SeqNo = 0, IsDirty = true }; InitChildViewBag(null); return(PartialView("_Item", info)); }