public ViewModelLocator() { _groupsRepository = new GroupsEFRepository(); _groupsService = new DefaultGroupsServise(_groupsRepository); }
public MainViewModel(GroupsService groupsService) { if (groupsService == null) throw new ArgumentNullException("groupsService"); this._groupsService = groupsService; }