public ActionResult RollCall() { FireStation station = new FireStation(); Firefighter joe = new Firefighter() { Name = "Joe" }; FirefighterBase bill = new TraineeFirefighter() { Name = "Bill" }; FireChief bigChiefHarry = new FireChief() { Name = "Harry" }; Administrator arthur = new Administrator() { Title = "Mr", Forename = "Arthur", Surname = "Askey" }; station.ClockIn(joe); station.ClockIn(bill); station.ClockIn(bigChiefHarry); station.ClockIn(arthur); // return Content(station.RollCall()); }
public ActionResult Override() { Firefighter joe = new Firefighter() { Name = "Joe"}; FirefighterBase bill = new TraineeFirefighter() { Name = "Bill"}; return Content(joe.ExtinguishFire() + "<br>" + bill.ExtinguishFire()); }