Example #1
0
 public static void CopyToEntity(this DT.AssignedJobResource source, DA.AssignedJobResource target)
 {
     if ((source == null) || (target == null))
     {
         return;
     }
     target.JobId      = source.JobId;
     target.ResourceId = source.ResourceId;
 }
Example #2
0
        public static DA.AssignedJobResource ToEntity(this DT.AssignedJobResource source)
        {
            if (source == null)
            {
                return(null);
            }
            var result = new DA.AssignedJobResource();

            source.CopyToEntity(result);
            return(result);
        }