コード例 #1
0
 public static Client.Models.Customers Map(PizzaLib.Customer customer)
 {
     return(new Client.Models.Customers
     {
         Customerid = customer.Customerid,
         Fname = customer.Fname,
         Lname = customer.Lname,
         Lastorder = customer.Lastorder
     });
 }
コード例 #2
0
 public static Pizza_Data.Models.Customer Map(PizzaLib.Customer customer)
 {
     return(new Pizza_Data.Models.Customer()
     {
         Id = customer.Id,
         Fname = customer.Fname,
         Lname = customer.Lname,
         Uname = customer.Uname,
         Pword = customer.Pword,
     });
 }