public static CustomerDto Map(Customer model)
        {
            if (model == null)
            {
                return(null);
            }

            return(new CustomerDto
            {
                Id = model.Id,
                Name = model.Name,
                Phone = model.Phone,
                Address = model.Address,
                Email = model.Email,
                Active = model.Active,
                Rowversion = model.RowVersion,
                CustomerDiscountType = CustomerDiscountTypeMapper.Map(model.CustomerDiscountType),
                CustomerDiscountTypeId = model.CustomerDiscountTypeID
            });
        }
        public static Customer Map(CustomerDto dto)
        {
            if (dto == null)
            {
                return(null);
            }

            return(new Customer
            {
                Id = dto.Id,
                Name = dto.Name,
                Phone = dto.Phone,
                Address = dto.Address,
                Email = dto.Email,
                Active = dto.Active,
                RowVersion = dto.Rowversion,
                CustomerDiscountType = CustomerDiscountTypeMapper.Map(dto.CustomerDiscountType),
                CustomerDiscountTypeID = dto.CustomerDiscountTypeId
            });
        }