Exemplo n.º 1
0
 public IActionResult Tacocat(Taco model)
 {
     return(View(model));
 }
Exemplo n.º 2
0
 public static void Main()
 {
     /*Create an instance of the food base class.
         Give it a few items to initialize to.
     */
     Food foodBC = new Food();
     foodBC.name = "burger";
     foodBC.calories = 122;
     foodBC.printBase();
     foodBC.sayTaste();
     /*Create an instance of the food inherited class of Taco*/
     Taco tacoIC = new Taco();
     tacoIC.name = "Taco";
     tacoIC.calories = 200;
     tacoIC.lettuce = true;
     tacoIC.sourCream = false;
     tacoIC.getFoodInfo();
     //Ask the user to press any key.
     Console.WriteLine("Press any key to close the program.");
     Console.ReadKey();
 }
 public Taco Create(Taco taco)
 {
     return(_repo.Create(taco));
 }