Beispiel #1
0
 public SalesmanList Convert(SalesmanListBO BO)
 {
     if (BO == null)
     {
         return(null);
     }
     {
         return(new SalesmanList()
         {
             Id = BO.Id,
             EmployeeId = BO.EmployeeId,
             CustomerId = BO.CustomerId,
             Employee = _empConv.Convert(BO.Employee),
             Customer = _custConv.Convert(BO.Customer)
         });
     }
 }
        public Equipment Convert(EquipmentBO equipment)
        {
            if (equipment == null)
            {
                return(null);
            }
            {
                return(new Equipment()
                {
                    Id = equipment.id,
                    Name = equipment.name,

                    Customer = _custConv.Convert(equipment.customer),
                    CustomerId = equipment.customerId
                });
            }
        }
Beispiel #3
0
 public Proposition Convert(PropositionBO prop)
 {
     if (prop == null)
     {
         return(null);
     }
     {
         return(new Proposition()
         {
             Id = prop.Id,
             Title = prop.Title,
             Description = prop.Description,
             CreationDate = prop.CreationDate,
             Customer = custConv.Convert(prop.Customer),
             CustomerId = prop.CustomerId,
             Employee = empConv.Convert(prop.Employee),
             EmployeeId = prop.EmployeeId,
             FileId = prop.FileId
         });
     }
 }
Beispiel #4
0
 public Receipt Convert(ReceiptBO receipt)
 {
     if (receipt == null)
     {
         return(null);
     }
     {
         return(new Receipt()
         {
             Id = receipt.Id,
             Title = receipt.Title,
             Description = receipt.Description,
             CreationDate = receipt.CreationDate,
             Customer = _custConv.Convert(receipt.Customer),
             CustomerId = receipt.CustomerId,
             Employee = _empConv.Convert(receipt.Employee),
             EmployeeId = receipt.EmployeeId,
             FileId = receipt.FileId
         });
     }
 }
 public Visit Convert(VisitBO visit)
 {
     if (visit == null)
     {
         return(null);
     }
     {
         return(new Visit()
         {
             Id = visit.Id,
             Title = visit.Title,
             Description = visit.Description,
             IsDone = visit.IsDone,
             DateTimeOfVisitStart = visit.DateTimeOfVisitStart,
             DateTimeOfVisitEnd = visit.DateTimeOfVisitEnd,
             CustomerId = visit.CustomerId,
             Customer = _custConv.Convert(visit.Customer),
             EmployeeId = visit.EmployeeId,
             Employee = _empConv.Convert(visit.Employee)
         });
     }
 }