Esempio n. 1
0
 public static void ToData(Shop shop, ShopFormModel model)
 {
     shop.Id    = model.Id;
     shop.Name  = model.Name;
     shop.Phone = model.Phone;
     //shop.City = model.Adresses.First().City;
     //shop.State = s.Adresses.First().Stat;
 }
Esempio n. 2
0
        public static void ToData(Shop shop, ShopFormModel model, Address address)
        {
            shop.Name  = model.Name;
            shop.Phone = model.Phone;

            address.Country = model.Country;
            address.State   = model.State;
            address.Type    = model.Type;
            address.Zip     = model.Zip;
            address.City    = model.City;
        }