Beispiel #1
0
 public static void CopyToEntity(this DT.ProjectPermission source, DA.ProjectPermission target)
 {
     if ((source == null) || (target == null))
     {
         return;
     }
     target.ProjectId       = source.ProjectId;
     target.GrantedUserId   = source.GrantedUserId;
     target.GrantedByUserId = source.GrantedByUserId;
 }
Beispiel #2
0
        public static DA.ProjectPermission ToEntity(this DT.ProjectPermission source)
        {
            if (source == null)
            {
                return(null);
            }
            var result = new DA.ProjectPermission();

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