public ActionResult GetSomeStuff()
        {
            var pizzaType = new PizzaType
            {
                Name = "Tyranasaurus Rex"
            };

            return Json(pizzaType, JsonRequestBehavior.AllowGet);
        }
Beispiel #2
0
 public void Add(PizzaType pizzaType)
 {
     _pizzaTypes.Add(pizzaType);
 }