Ejemplo n.º 1
0
        //[HttpPost]
        public async Task <ActionResult> LinkedViews(string contenturipattern)
        {
            contenturipattern = (string.IsNullOrEmpty(contenturipattern)) ? DataHelpers.MakeURIPatternStart()
                : contenturipattern;
            DataHelpers.SERVER_ACTION_TYPES eServerActionType
                = DataHelpers.SERVER_ACTION_TYPES.linkedviews;
            ViewDataHelper viewHelper = new ViewDataHelper();

            viewHelper.GetNewAction(this.HttpContext, ref eServerActionType);
            return(await this.GeneralAction(contenturipattern, eServerActionType));
        }
Ejemplo n.º 2
0
        public async Task <ActionResult> Search(string contenturipattern)
        {
            contenturipattern = (string.IsNullOrEmpty(contenturipattern)) ?
                                DataHelpers.MakeURIPatternStart() : contenturipattern;
            //check for redirections from ajax content requests or subserveractiontypes
            DataHelpers.SERVER_ACTION_TYPES eServerActionType
                = DataHelpers.SERVER_ACTION_TYPES.search;
            ViewDataHelper viewHelper = new ViewDataHelper();

            viewHelper.GetNewAction(this.HttpContext, ref eServerActionType);
            return(await this.GeneralAction(contenturipattern, eServerActionType));
        }
Ejemplo n.º 3
0
 public async Task <ActionResult> Index()
 {
     if (this.Request.Method != "POST")
     {
         ViewData["Title"] = AppHelper.GetResource("HOMETREKS_TITLE");
         return(View());
     }
     else
     {
         //jquery.ajax form posts to absolute path work around
         string sContenturipattern = string.Empty;
         DataHelpers.SERVER_ACTION_TYPES eServerActionType
             = DataHelpers.SERVER_ACTION_TYPES.edit;
         ViewDataHelper viewHelper = new ViewDataHelper();
         viewHelper.GetNewAction(this.HttpContext, ref eServerActionType);
         return(await this.GeneralAction(sContenturipattern, eServerActionType));
     }
 }
Ejemplo n.º 4
0
 public async Task <ActionResult> Index()
 {
     if (this.Request.Method != "POST")
     {
         ViewData["Title"] = AppHelper.GetResource("COMMONTREKS_TITLE");
         return(View());
     }
     else
     {
         //vs2012: upload file forms are submitted here
         string sContenturipattern = string.Empty;
         DataHelpers.SERVER_ACTION_TYPES eServerActionType
             = DataHelpers.SERVER_ACTION_TYPES.edit;
         ViewDataHelper viewHelper = new ViewDataHelper();
         viewHelper.GetNewAction(this.HttpContext, ref eServerActionType);
         return(await this.GeneralAction(sContenturipattern, eServerActionType));
     }
 }
Ejemplo n.º 5
0
 public async Task <ActionResult> Index()
 {
     //this sets up the 'controller' index page which should be kept separate
     //from the ajax interactive page that follows
     //(easier to reset page when necessary)
     if (this.Request.Method != "POST")
     {
         ViewData["Title"] = AppHelper.GetResource("AGTREKS_TITLE");
         return(View());
     }
     else
     {
         //jquery.ajax form posts to absolute path work around
         string sContenturipattern = string.Empty;
         DataHelpers.SERVER_ACTION_TYPES eServerActionType
             = DataHelpers.SERVER_ACTION_TYPES.edit;
         ViewDataHelper viewHelper = new ViewDataHelper();
         viewHelper.GetNewAction(this.HttpContext, ref eServerActionType);
         return(await this.GeneralAction(sContenturipattern, eServerActionType));
     }
 }