Skip to content

Instantly share code, notes, and snippets.

@TWolverson
Last active March 4, 2019 13:15
Show Gist options
  • Save TWolverson/61be2fa256a9844fed73eab0f4b7731d to your computer and use it in GitHub Desktop.
Save TWolverson/61be2fa256a9844fed73eab0f4b7731d to your computer and use it in GitHub Desktop.
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