MenuCreationController Methods
The MenuCreationController type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() |
AddAddon |
Takes an Addon Model Object and adds it to the database
|
![]() |
AddCategory |
Adds the specified category object to the database and returns that updated category
|
![]() |
AddIngredient |
Add a new Ingredient to the database and return that new ingredient
|
![]() |
AddMenuItem |
Add a new menu item to the database and return that updated object
|
![]() |
AddMenuItemIngredient |
Map a new menu item ingredient to the specified menu item
and add it to the database
|
![]() |
AddSubcategory |
Add a new subcategory to the database
|
![]() |
CategoryExists |
Check if a category exists in the database.
|
![]() |
EditCategory |
Edits a given Category with new data specified by the parameters.
|
![]() |
EditMenuItem |
Edit a specific menu item with new data in the database.
|
![]() |
EditSubcategory |
Given a subcategory model object update the existing subcategory in the database with the new data
|
![]() |
GetAddons |
Returns a list of the addons with the specific subcategory id.
|
![]() |
GetIngredients |
Retrieves a list of Ingredient objects from the database
and returns that list to the caller.
|
![]() |
GetItemImage |
Given a menu item id retrieves a menu item and returns
the menu item image.
|
![]() |
GetMenuItem |
Retrieve a menu item from the database with a specific id
|
![]() |
GetMenuItemIngredients |
Get a list of menu item ingredients attached to a specific menu item
then return that list.
|
![]() |
GetSubcategory |
Get request for a specific subcategory with a specific id
|
![]() |
Index |
Index listener for MenuCreationController. This is antiquated at this point.
|
![]() |
Menu |
Main menu creation page generation. Takes all menu data from the Menu tables
then uses the MenuCreationViewModel to cast that data to a list so the menu creation
page can use it to populate the page with menu data.
|
![]() |
RemoveAddon |
Given an addon id search the database and remove the addon with that id.
|
![]() |
RemoveCategory |
Removes a Category specified by its Id.
|
![]() |
RemoveIngredient |
Remove an ingredient from the database.
|
![]() |
RemoveMenuItem |
Remove a menuitem from the database with a specific id
|
![]() |
RemoveMenuItemIngredient |
Remove the mapping of an ingredient to a menu item
and return true when it succeeds.
|
![]() |
RemoveSubcategory |
Removes a subcategory from the database given that subcategories Id.
Returns true when completed.
|
![]() |
UpdateItemImage |
Update a menu item with a new image. Takes the id of the menu item to update,
and a base64 image string and converts that string to a byte array to store in
in the database.
|