public bool UpdateEntityType(ref SomeEntityType input) { input = input ?? new SomeEntityType(); input.Price = input.Price + 10; Log($"Returning price {input.Price}"); return(true); }
bool IServiceContract.GetUpdatedEntityType(SomeEntityType input, out SomeEntityType updated) { updated = input.Price < 10 ? null : new SomeEntityType { Name = input.Name, Price = input.Price + 10 }; return(input.Price < 10); }