AddIngredient Method

TriCodeTest

MenuCreationController..::..AddIngredient Method

Add a new Ingredient to the database and return that new ingredient

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

Syntax


[HttpPostAttribute]
public Task<ActionResult> AddIngredient(
	Ingredient obj
)

Parameters

obj
Type: TriCodeTest.Models.MenuModels..::..Ingredient
Ingredient Model

Return Value

A new ingredient model with updated data