title: Putting logic in ViewModel get'ers
body: <p>What do you think about putting Get-logic in the getters of a ViewModel? Something like:</p>
  
  <pre><code>public class DummyViewModel
  {
      public int Id { get; set; }
  
      private DummyObject myObject;
  
      public DummyObject MyObject
      {
          get
          {
              if (MyObject == null)
              {
                  DummyRepository repo = new DummyRepository();
                  myObject = repo.Get(Id);
              }
              return myObject;
          }
      }
  
  }
  </code></pre>
  
  <p>Is this bad practice, or totally fine? I find my controllers getting really bloated by doing all the get-logic there, but I'm really torn as to where I should put it...</p>
  
  <p>My reason for doing it this way, is that I can pass the ViewModel to different types of view, and only the neccessary DB-lookup will be performed based on what property is requested.</p>