示例#1
0
 public bool UpdateEntityType(ref SomeEntityType input)
 {
     input       = input ?? new SomeEntityType();
     input.Price = input.Price + 10;
     Log($"Returning price {input.Price}");
     return(true);
 }
示例#2
0
 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);
 }