public void UpdateCustomdeflocalid(Mods.Customer user) { var changedlocal = CustomMap(user); _db.Update(changedlocal); Save(); }
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(), };