public ServiceViewModel(IUnitOfWork unitOfWork) { ServiceModel.unitOfWork = unitOfWork; _service = new ServiceModel(); _service.IsNewObject = true; _selectedService = new ServiceModel(); _serviceCollection = ServiceModel.GetAllData(); #region Initialize Commands AddService = new DelegatingCommand((o) => { ServiceModel.AddItem(_service); _service = new ServiceModel(); _service.IsNewObject = true; }); RemoveService = new DelegatingCommand((o) => ServiceModel.RemoveItem(_selectedService)); #endregion }