public static StatusBag StatusBag(this TempDataDictionary helper) { var statusBag = helper[StatusBagKey] as StatusBag; if (statusBag == null) { statusBag = new StatusBag(); helper[StatusBagKey] = statusBag; } return statusBag; }
public static StatusBag SetStatusBag(this TempDataDictionary helper, StatusBag statusBagSource) { helper[StatusBagKey] = statusBagSource; return statusBagSource; }