Skip to content

Instantly share code, notes, and snippets.

@erichexter
Created November 10, 2012 18:01
Show Gist options
  • Save erichexter/4051946 to your computer and use it in GitHub Desktop.
Save erichexter/4051946 to your computer and use it in GitHub Desktop.
public class HomeController : Controller
{
DeviceRepository _repository = new DeviceRepository();
SceneRepository _sceneRepository = new SceneRepository();
public Actio01nResult Index()
{
HomeViewModel model = new HomeViewModel();
model.Devices = _repository.GetAll();
model.Scenes = _sceneRepository.GetAll();
return View(model);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment