copy properties
public int DoSomeThing(FooModel foo) { // copy from FooModel to Foo Foo f = new Foo { Id = foo.Id, Name = foo.Name }; // do something return 0; }