Exemplo n.º 1
0
        public ActionResult GetModel()
        {
            int        kid       = GetValueInt("kid");
            int        contentid = GetValueInt("contentid");
            recipeJson recJson   = new recipeJson();
            RecipeInfo rec       = RecipeDataProxy.Recipe_GetModel(contentid);

            recJson = rec.GetJson(true);

            ViewData["kid"]       = kid;
            ViewData["contentid"] = contentid;
            return(Json(recJson.week_contents, JsonRequestBehavior.AllowGet));
        }