public ActionResult AjaxGetMenuFromCategory(int category_ID) { var tupleResult = InputControl.AjaxGetMenuFromCategoryControl(category_ID); int errorCode = tupleResult.Item1; List <Menu> menuList = tupleResult.Item2; return(Json(new { result = errorCode, menuList })); }