Пример #1
0
 public static Mods.History CustomhistMap(Data.History hist) => new Mods.History
 {
     Historyid = hist.Historyid,
     Userid    = hist.Userid,
     Storeid   = hist.Storeid,
     Orderid   = hist.Orderid,
 };
Пример #2
0
 public static PizzaWebApp.Models.History Map(Data.History history) => new PizzaWebApp.Models.History
 {
     Historyid = history.Historyid,
     Userid    = history.Userid,
     Storeid   = history.Storeid,
     Orderid   = history.Orderid,
     Order     = Map(history.Order),
     Store     = Map(history.Store),
     User      = CustomMap(history.User),
 };