public Customer Map()

in Source/Services/Tailwind.Traders.Rewards.Registration.Api/Mappers/CustomerMapper.cs [8:34]


        public Customer Map(DataRow customerRow)
        {
            if (customerRow == null)
            {
                return null;
            }

            return new Customer
            {
                AccountCode = customerRow["AccountCode"].ToString(),
                Active = (bool)customerRow["Active"],
                City = customerRow["City"].ToString(),
                Country = customerRow["Country"].ToString(),
                CustomerId = (int)customerRow["CustomerId"],
                Email = customerRow["Email"].ToString(),
                Enrrolled = (EnrollmentStatusEnum)customerRow["Enrrolled"],
                FaxNumber = customerRow["FaxNumber"].ToString(),
                FirstAddress = customerRow["FirstAddress"].ToString(),
                FirstName = customerRow["FirstName"].ToString(),
                LastName = customerRow["LastName"].ToString(),
                MobileNumber = customerRow["MobileNumber"].ToString(),
                PhoneNumber = customerRow["PhoneNumber"].ToString(),
                RowVersion = (byte[])customerRow["RowVersion"],
                Website = customerRow["Website"].ToString(),
                ZipCode = customerRow["ZipCode"].ToString()
            };
        }