示例#1
0
        public Customer Post(CreateCustomerRequest request)
        {
            var personCtr    = new PersonCtr();
            var customerData = new Customer()
            {
                FName   = request.FName,
                LName   = request.LName,
                PhoneNo = request.PhoneNo,
                Email   = request.Email,
                VIP     = request.VIP
            };

            personCtr.CreateCustomer(customerData);
            return(customerData);
        }
示例#2
0
 public void CreateCustomer(Customer customer)
 {
     _personCtr.CreateCustomer(customer);
 }