public ActionResult GetSomeStuff() { var pizzaType = new PizzaType { Name = "Tyranasaurus Rex" }; return Json(pizzaType, JsonRequestBehavior.AllowGet); }
public void Add(PizzaType pizzaType) { _pizzaTypes.Add(pizzaType); }