コード例 #1
0
        public ActionResult ChangeState(string id, string state)
        {
            _bookManager.ChangeState(id, state);

            var redirectUrl = new UrlHelper(Request.RequestContext).Action("Index", "Home");

            return(Json(new { Url = redirectUrl }));
        }