Пример #1
0
 public static Data.Location StorelocalMap(Mods.Location local) => new Data.Location
 {
     Locationid = local.Locationid,
     State      = local.State,
     Street     = local.Street,
     City       = local.City,
 };
Пример #2
0
        public void Updatedeflocal(Mods.Location local)
        {
            var newlocal = CustomlocalMap2(local);

            _db.Update(newlocal);
            Save();
        }
Пример #3
0
 public static Data.Location Map(PizzaWebApp.Models.Location location) => new Data.Location
 {
     Locationid   = location.Locationid,
     Street       = location.Street,
     State        = location.State,
     City         = location.City,
     Pizzastore   = Map(location.Pizzastore),
     Customer     = Map(location.Customer).ToList(),
     Orderdetails = Map(location.Orderdetails).ToList(),
 };
Пример #4
0
 public void Createlocal(Mods.Location local)
 {
     _db.Add(Map(local));
     Save();
 }