public static CustomerDomain Create(Customer customer)
 {
     return new CustomerDomain
     {
         Id = customer.Id,
         Name = customer.Name,
         Email = customer.Email,
         Phone = customer.Phone,
         PIN = customer.PIN
     };
 }
        public static CustomerDomain Create(Customer customer)
        {
            CustomerDomain customerDomain = new CustomerDomain
            {
                Id = customer.Id,
                Name = customer.Name,
                Email = customer.Email,
                Phone = customer.Phone,
                PIN = customer.PIN
            };

            if (customer.Products != null && customer.Products.Any())
            {
                var productList = new List<ProductDomain>();
                foreach (var product in customer.Products)
                {
                    productList.Add(product.CreateProductDomain(customerDomain));
                }
                customerDomain.Products = productList;
            }
            return customerDomain;
        }
 public void Delete(Customer entity)
 {
 }
 public void Update(Customer entity)
 {
 }
 public void Add(Customer entity)
 {
 }