Esempio n. 1
0
        public Customer NewCustomer(SailsModule module)
        {
            Customer customer;

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