public Customer NewCustomer(SailsModule module) { Customer customer; if (CustomerId > 0) { customer = module.CustomerGetById(CustomerId); } else { customer = new Customer(); } SetCustomer(customer, module); return(customer); }
public Customer NewCustomer(SailsModule module) { Customer customer; if (CustomerId > 0) { customer = module.CustomerGetById(CustomerId); } else { customer = new Customer(); } SetCustomer(customer, module); return(customer); }