Click or drag to resize

ControllerStandardDataItemClassSetViewBagList Method

Set view bag list is empty

Namespace:  SOWIWeb.Helper
Assembly:  SOWIWeb.Helper (in SOWIWeb.Helper.dll) Version: 19.1.23.1 (19.1.23.622)
Syntax
protected virtual void SetViewBagList()
Remarks
Put object TempData for the controller
Examples
Example selection list
TempData["LanguageUIList"] = AppAddress.GetLanguageUIs();
Example implemented method GetLanguageUIs. Gives a data standard structure list filtered by without archived.
public List<SOWIData.IDataStandard> GetLanguageUIs()
{
    try
    {
        var lList = GetAll().Cast<SOWIData.IDataStandard>().ToList();
        lList = (from p in lList
                 where p.Archive == false
                 select p).ToList();
        return lList;
    }
    catch (Exception ex)
    {
        SIC.Protocol.Write(ref ex);
        throw;
    }
}
Example selection enumeration
TempData["WorkList"] = SOWIData.Helper.Enumeration.GetList(new SOWIData.App.Works());
See Also