Esempio n. 1
0
        public static ContactInformation ToModel(this ContactInformation entity)
        {
            if (entity == null)
            {
                return(null);
            }

            var model = new ContactInformation
            {
                Id            = entity.Id,
                Email         = entity.Email,
                Fax           = entity.Fax,
                Hotline       = entity.Hotline,
                Lag           = entity.Lag,
                Language      = entity.Language,
                Lat           = entity.Lat,
                MobilePhone   = entity.MobilePhone,
                NumberOfStore = entity.NumberOfStore,
                OrderDisplay  = entity.OrderDisplay,
                ProvinceId    = entity.ProvinceId,
                Status        = entity.Status,
                Type          = entity.Type,

                Title   = entity.GetLocalized(x => x.Title, entity.Id),
                Address = entity.GetLocalized(x => x.Address, entity.Id)
            };

            return(model);
        }