public override JobTypeVM DeepClone() { var dto = JobTypeConvertUtil.ToDto(this); var vm = JobTypeConvertUtil.FromDto(dto); base.CopyStateValues(vm); return(vm); }
private async void RefreshItemsAsync() { this.ItemList.Clear(); IsBusy = true; ICollection <jobType> items = await AppCxt.Current.DataPortal.GetAllJobTypesAsync(); IsBusy = false; foreach (var item in items) { JobTypeVM vm = JobTypeConvertUtil.FromDto(item); this.ItemList.Add(vm); } }