private void AddWorkTypeCmd(object model) { var worktype = model as WorkType; if (string.IsNullOrWhiteSpace(worktype.WorkTypeName)) { return; } _repositoryManager.AddWorkType(worktype); WorkTypeToAdd = new WorkType(); var works = _repositoryManager.GetWorkTypes(); WorkTypes = ProcessWorkTypeKeyValue(works); LabourToAdd.WorkType = WorkTypes.First(); OnPropertyChanged(nameof(LabourToAdd)); }