private NDEFUriEditViewModel Model_to_viewModel(NDEFUri service) { var editModel = new NDEFUriEditViewModel(); editModel.ServiceId = service.ServiceId; editModel.Provider = service.Provider; editModel.URI = service.Record.FormattedURI; return(editModel); }
private NDEFUri ViewModel_to_model(NDEFUri service, NDEFUriEditViewModel editModel) { service.Provider = editModel.Provider; service.SaveRecord(editModel.URI, 1); return(service); }