Click or drag to resize

ControllerStandardDataItemClassIndex Method

Standard Index (Get). Check CanIndex and Permission by Read and ReadOwner. Called IndexOnActionResultGet when entitled

Namespace:  SOWIWeb.Helper
Assembly:  SOWIWeb.Helper (in SOWIWeb.Helper.dll) Version: 19.1.23.1 (19.1.23.622)
Syntax
public virtual ActionResult Index()

Return Value

Type: ActionResult

[Missing <returns> documentation for "M:SOWIWeb.Helper.ControllerStandard`1.Index"]

Remarks
Note: this method resets SOWI Web Session UpLoadFile to a new object.

Code for this method

public virtual ActionResult Index()
{
    SOWIWeb.Helper.Session.UploadFile = new SOWIData.Helper.Models.FileContent();
    if (this.CanIndex)
    {
        var lClaim = new SOWIData.Management.CRUD[] { SOWIData.Management.CRUD.Read, SOWIData.Management.CRUD.ReadOwner };
        if (PermissionCheck(lClaim))
        {
            return IndexOnActionResultGet();
        }
    }
    return PermissionDenied();
}
See Also