public TypeConverterTest() { CustomerFilterOne customer = new CustomerFilterOne { CustomerAddress = "address", CustomerName = "mycustomer", CustomerTel = "555", Id = 1 }; Customer converted_customer = TypeConverter.Progress <CustomerFilterOne, Customer>(customer); //... }
public Customer GetValueByBlaBla() { Customer customer = new Customer { CreatedDate = DateTime.Now, CustomerAddress = "My Address", CustomerName = "Blabla", CustomerTel = "444", Id = 123, IsActive = true, IsDeleted = false, ModifiedDate = DateTime.Now }; CustomerFilterOne shortcustomer = new CustomerFilterOne { Id = 1, CustomerName = "Bla", CustomerTel = "555", CustomerAddress = "ISTANBUL" }; return(null); }