public CreditTypesView()
        {
            InitializeComponent();
            var repo = new CreditTypeRepository();

            DataContext = new DomainViewModel <CreditType>(repo);
        }
 public GenresView()
 {
     InitializeComponent();
     DataContext = new DomainViewModel <Genre>(
         new GenreRepository());
 }