OrderInfoController Members

TriCodeTest

OrderInfoController Members

The OrderInfoController type exposes the following members.

Constructors


  Name Description
Public method OrderInfoController
Order info constructor

Methods


  Name Description
Public method Edit(Nullable<(Of <<'(Int32>)>>))
Returns a single Order by the Id passed in.
Public method Edit(Int32, Order)
Will update the Order in the database with the new status passed in.
Public method Index
Retrieves all orders in the DB and returns them as a list.
Private method ListOrderDeserialize
Deserializes all the Orders in the database to view models.
Private method OrderDeserialize
Deserializes an Order and converts it to the view model.
Private method OrderInfoExists
Returns if the Order exists or not.
Private method OrderSerialize
Serializes a view model and converts it to an Order.

Fields


  Name Description
Private field _context
Private field _logger