Exemple #1
0
 private static RoutingItem ToRoutingItem(RoutingItemContract contract)
 {
     return (contract!= null ? new RoutingItem(contract.Key, Converter.ToDiscipline(contract.Discipline), 
                contract.RoutingOrder, Converter.ToProjectContact(contract.Recipient), 
                contract.DateSent, contract.DateReturned) : null);
 }
Exemple #2
0
 private static RoutingItemContract ToRoutingItemContract(RoutingItem item)
 {
     RoutingItemContract contract = null;
     if (item != null)
     {
         contract = new RoutingItemContract();
         contract.DateReturned = item.DateReturned;
         contract.DateSent = item.DateSent;
         contract.Discipline = Converter.ToDisciplineContract(item.Discipline);
         contract.Key = item.Key;
         contract.Recipient = Converter.ToProjectContactContract(item.Recipient);
         contract.RoutingOrder = item.RoutingOrder;
     }
     return contract;
 }