diff options
Diffstat (limited to 'Controllers')
| -rw-r--r-- | Controllers/CheckOrdersController.cs | 17 | ||||
| -rw-r--r-- | Controllers/Controller.cs | 10 | ||||
| -rw-r--r-- | Controllers/MainController.cs | 28 | ||||
| -rw-r--r-- | Controllers/OrderPizzaController.cs | 105 |
4 files changed, 160 insertions, 0 deletions
diff --git a/Controllers/CheckOrdersController.cs b/Controllers/CheckOrdersController.cs new file mode 100644 index 0000000..861fb2e --- /dev/null +++ b/Controllers/CheckOrdersController.cs @@ -0,0 +1,17 @@ +using System.Collections.Generic; +using KukaPizza.Models; +using KukaPizza.Views; + +namespace KukaPizza.Controllers +{ + public class CheckOrdersController : Controller + { + private static Database db = Database.Instance; + + public List<PizzaOrder> Orders { get { return db.Orders; } } + public CheckOrdersController() + { + new CheckOrdersView(this); + } + } +}
\ No newline at end of file diff --git a/Controllers/Controller.cs b/Controllers/Controller.cs new file mode 100644 index 0000000..afa7295 --- /dev/null +++ b/Controllers/Controller.cs @@ -0,0 +1,10 @@ +using System; +using KukaPizza.Views; + +namespace KukaPizza.Controllers +{ + public ab |