コード例 #1
0
        public static Customer ToApiCustomer(AFCustomer uiCustomer)
        {
            Customer customer = new Customer();

            customer.Guid   = uiCustomer.Guid;
            customer.Name   = uiCustomer.Name;
            customer.Status = uiCustomer.Status;

            return(customer);
        }
コード例 #2
0
        public static AFCustomer ToUiCustomer(Customer customer)
        {
            AFCustomer uiCustomer = new AFCustomer();

            uiCustomer.Guid       = customer.Guid;
            uiCustomer.Name       = customer.Name;
            uiCustomer.Status     = customer.Status;
            uiCustomer.IsModified = false;

            return(uiCustomer);
        }