Exemple #1
0
 public static DAL.TypeUser GetTypeUser(DTO.NewFolder1.TypeUser typeuserdto)
 {
     if (typeuserdto == null)
     {
         return(null);
     }
     DAL.TypeUser type = new DAL.TypeUser()
     {
         TypeId   = typeuserdto.TypeId,
         TypeName = typeuserdto.TypeName,
         users    = NewFolder1.user.GetListUserDAL(typeuserdto.users as List <NewFolder1.user>)
     };
     return(type);
 }
Exemple #2
0
        public static TypeUser GetTypeUser(DAL.TypeUser t)
        {
            if (t == null)
            {
                return(null);
            }
            TypeUser dto = new TypeUser()
            {
                TypeId   = t.TypeId,
                TypeName = t.TypeName,
                users    = NewFolder1.user.GetListUserDTO(t.users as List <DAL.users>)
            };

            return(dto);
        }