public ViewModelLocator()
 {
     _groupsRepository =
             new GroupsEFRepository();
     _groupsService = 
         new DefaultGroupsServise(_groupsRepository);
 }
Exemple #2
0
        public MainViewModel(GroupsService groupsService)
        {
            if (groupsService == null) throw new ArgumentNullException("groupsService");

            this._groupsService = groupsService;
        }