AddSubcategory Method

TriCodeTest

MenuCreationController..::..AddSubcategory Method

Add a new subcategory to the database

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

Syntax


[HttpPostAttribute]
public Task<ActionResult> AddSubcategory(
	Subcategory subcategoryObj,
	Category categoryObj,
	List<AddOn> addonsObj
)

Parameters

subcategoryObj
Type: TriCodeTest.Models.MenuModels..::..Subcategory
Subcategory Model Object containing data to add
categoryObj
Type: TriCodeTest.Models.MenuModels..::..Category
Category Model Object which should be tied to the new subcategory
addonsObj
Type: List<(Of <(<'AddOn>)>)>
Addon Model List which contains a list of addons contained in the new subcategory

Return Value

True when completed.