Ejemplo n.º 1
0
 public static Models.Order ConvertToDal(Shared.Order model)
 {
     return(new Models.Order
     {
         Id = model.Id,
         TotalAmount = model.TotalAmount,
         CilentId = model.CilentId,
         Cilent = ClientDAO.ConvertToDal(model.Cilent),
         Billet = BilletDAO.ConvertToDal(model.Billet)
     });
 }
Ejemplo n.º 2
0
 public static Business.Order ConvertToBusiness(Models.Order model)
 {
     return(new Business.Order
     {
         Id = model.Id,
         TotalAmount = model.TotalAmount,
         CilentId = model.CilentId,
         Cilent = ClientDAO.ConvertToBusiness(model.Cilent),
         Billet = BilletDAO.ConvertToBusiness(model.Billet)
     });
 }
Ejemplo n.º 3
0
 public static Shared.Order ConvertToEndPoint(Business.Order model)
 {
     return(new Shared.Order
     {
         Id = model.Id,
         TotalAmount = model.TotalAmount,
         CilentId = model.CilentId,
         Cilent = ClientDAO.ConvertToEndPoint(model.Cilent),
         Billet = BilletDAO.ConvertToEndPoint(model.Billet)
     });
 }