AddMenuItemIngredient Method

TriCodeTest

MenuCreationController..::..AddMenuItemIngredient Method

Map a new menu item ingredient to the specified menu item and add it to the database

Namespace:  TriCodeTest.Controllers
Assembly:  TriCodeTest (in TriCodeTest.dll)

Syntax


[HttpPostAttribute]
public Task<ActionResult> AddMenuItemIngredient(
	int itemId,
	int ingredientId
)

Parameters

itemId
Type: Int32
Menuitem Id
ingredientId
Type: Int32
Ingredient Id

Return Value

Ingredient object which has been mapped