CustomerMenuController Methods
The CustomerMenuController type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() |
AddNewOrderToDatabase |
Creates a new empty cart if a cart hasn't been created already
|
![]() |
CalculateTotalPrice |
Calculates total price of order
|
![]() |
Cart |
Returns a view with the order of the current logged in user
|
![]() |
ConvertToOrderMenuItem |
Converts item to view model containing choice of addons tha can be added
|
![]() |
EditItem(Nullable<(Of <<'(Int32>)>>)) |
Returns view containing item passed in to be able to edit it
|
![]() |
EditItem(CartOrderMenuItem) |
Updates the edited item in the database
|
![]() |
GetCurrentUserAsync |
Gets the current user asynchronous.
|
![]() |
Index |
Receives all items needed to build the menu from the database and returns them as an object with lists
|
![]() |
OrderDeserialize |
Deserializes an Order and converts it to the view model
|
![]() |
OrderSerialize |
Serializes a view model and converts it to an Order
|
![]() |
PostMenuItemToCart |
Adds single menu item to cart
|
![]() |
RemoveItem |
Removes passed item from user's cart
|
![]() |
SubmitOrder |
Submits the order and changes it's status from Cart to Received
|