diff --git a/OdeToFoodRider/OdeToFoodRider/Controllers/HomeController.cs b/OdeToFoodRider/OdeToFoodRider/Controllers/HomeController.cs index 0466366..d4152e5 100644 --- a/OdeToFoodRider/OdeToFoodRider/Controllers/HomeController.cs +++ b/OdeToFoodRider/OdeToFoodRider/Controllers/HomeController.cs @@ -40,5 +40,10 @@ public IActionResult Details(int id) return View(model); } + + public IActionResult Create() + { + return View(); + } } } \ No newline at end of file diff --git a/OdeToFoodRider/OdeToFoodRider/Models/CuisineType.cs b/OdeToFoodRider/OdeToFoodRider/Models/CuisineType.cs new file mode 100644 index 0000000..337693c --- /dev/null +++ b/OdeToFoodRider/OdeToFoodRider/Models/CuisineType.cs @@ -0,0 +1,10 @@ +namespace OdeToFoodRider.Models +{ + public enum CuisineType + { + None, + Italian, + French, + German + } +} \ No newline at end of file diff --git a/OdeToFoodRider/OdeToFoodRider/Models/Restaurant.cs b/OdeToFoodRider/OdeToFoodRider/Models/Restaurant.cs index 67b85df..f9393b3 100644 --- a/OdeToFoodRider/OdeToFoodRider/Models/Restaurant.cs +++ b/OdeToFoodRider/OdeToFoodRider/Models/Restaurant.cs @@ -4,5 +4,6 @@ public class Restaurant { public int Id { get; set; } public string Name { get; set; } + public CuisineType Cuisine { get; set; } } } \ No newline at end of file diff --git a/OdeToFoodRider/OdeToFoodRider/Views/Home/Create.cshtml b/OdeToFoodRider/OdeToFoodRider/Views/Home/Create.cshtml new file mode 100644 index 0000000..9ca4695 --- /dev/null +++ b/OdeToFoodRider/OdeToFoodRider/Views/Home/Create.cshtml @@ -0,0 +1,23 @@ +@using OdeToFoodRider.Models +@model OdeToFoodRider.Models.Restaurant + + + + +
+