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

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

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