//
        // GET: /RecipeInfo/
        /// <param name="recid">ID of the recipe to get info for</param>
        public ActionResult RecipeInfo(int recid)
        {
            SpeedyChefDataContext          scdc             = new SpeedyChefDataContext();
            IEnumerable <RecipeInfoResult> recipeInfoResult = null;

            recipeInfoResult = scdc.RecipeInfo(recid);
            return(Json(recipeInfoResult, JsonRequestBehavior.AllowGet));
        }
        //
        // GET: /RecipeInfo/
        /// <param name="recid">ID of the recipe to get info for</param>
        public ActionResult RecipeInfo(int recid)
        {
            SpeedyChefDataContext scdc = new SpeedyChefDataContext();
            IEnumerable<RecipeInfoResult> recipeInfoResult = null;

            recipeInfoResult = scdc.RecipeInfo(recid);
            return Json(recipeInfoResult, JsonRequestBehavior.AllowGet);
        }
Exemple #3
0
        /// <summary>
        /// Returns infomation about given recipe for id
        /// </summary>
        /// <param name="recid">Recipe id</param>
        /// <returns>Json about recipe</returns>
        /// <example>/CalendarScreen/GetRecipe?recid=2</example>
        public ActionResult GetRecipe(int recid)
        {
            SpeedyChefDataContext sdcd = new SpeedyChefDataContext();

            return(Json(sdcd.RecipeInfo(recid), JsonRequestBehavior.AllowGet));
        }