public async Task <ActionResult> Index(CancellationToken cancellationToken)
        {
            ViewData[Constant.FormTitle] = "ADD Web API Object";
            IWebApiObjectModel model = await _service.IndexAsync(this.HttpContext.ApplicationInstance.Context, GetCanellationToken(cancellationToken));

            return(View(model));
        }
        public async Task <ActionResult> IndexEdit(long hdWAObjectId, CancellationToken cancellationToken)
        {
            if (hdWAObjectId > 0)
            {
                ViewData[Constant.FormTitle] = "EDIT Web API Object";
                IWebApiObjectModel model = await _service.IndexAsync(this.HttpContext.ApplicationInstance.Context, hdWAObjectId, GetCanellationToken(cancellationToken));

                ViewData[Constant.QuerySuccess] = HttpContext.Items[Constant.QuerySuccess];
                return(View("Index", model));
            }
            else
            {
                return(Redirect("~/WebApiObjectSearch/Index"));
            }
        }