예제 #1
0
        public void UpdateCustomdeflocalid(Mods.Customer user)
        {
            var changedlocal = CustomMap(user);

            _db.Update(changedlocal);
            Save();
        }
예제 #2
0
 public static Data.Customer CustomMap(PizzaWebApp.Models.Customer customer) => new Data.Customer
 {
     Userid        = customer.Userid,
     Username      = customer.Username,
     Deflocationid = customer.Deflocationid,
     Haveorder     = customer.Haveorder,
     Dateplaced    = customer.Dateplaced,
     Firstname     = customer.Firstname,
     Lastname      = customer.Latname,
     Deflocation   = CustomlocalMap(customer.Deflocation),
     History       = CustomhistMap(customer.History).ToList(),
     Orderdetails  = CustomdetsMap(customer.Orderdetails).ToList(),
 };