public static Customer ToApiCustomer(AFCustomer uiCustomer) { Customer customer = new Customer(); customer.Guid = uiCustomer.Guid; customer.Name = uiCustomer.Name; customer.Status = uiCustomer.Status; return(customer); }
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); }