public void SaveData(ModelNotifiedForProducts modelNotifiedForProducts, out string error) { ProductsGenericREST ProductsGenericREST = new ProductsGenericREST(wpfConfig); UpdateProductsView updateProductsView = new UpdateProductsView(); Cloner.CopyAllTo(typeof(ModelNotifiedForProducts), modelNotifiedForProducts, typeof(UpdateProductsView), updateProductsView); ProductsGenericREST.Update(updateProductsView, out error); }