Last active
March 4, 2019 13:15
-
-
Save TWolverson/61be2fa256a9844fed73eab0f4b7731d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class StreetController : BaseControllerType<Street> { | |
// is the intention to type these as BaseControllerType<House> or BaseControllerType<BaseEntityType> ? | |
private readonly HouseController houseController; | |
private readonly LightController lightController; | |
public ActionResult Update(Street street){ | |
foreach(var house in street.Houses){ | |
streetController.Update(house); | |
} | |
foreach(var light in street.Streetlights){ | |
lightController.Update(light); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment