Ejemplo n.º 1
0
        //[ChildActionOnly]
        public async Task <ActionResult> GeneralAction(string contenturipattern,
                                                       DataHelpers.SERVER_ACTION_TYPES serverActionType)
        {
            bool bUseContentAction = ViewDataHelper.GetContentAction(serverActionType);
            bool bIsAjaxSubaction  = ViewDataHelper.IsAjaxSubaction(this.Request.HttpContext);

            if (bUseContentAction == true)
            {
                if (bIsAjaxSubaction)
                {
                    return(await this.ContentAjaxAction(contenturipattern));
                }
                else
                {
                    return(await this.ContentAction(contenturipattern));
                }
            }
            else
            {
                if (bIsAjaxSubaction)
                {
                    return(await this.SearchAjaxAction(contenturipattern));
                }
                else
                {
                    return(await this.SearchAction(contenturipattern));
                }
            }
        }