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