Exemplo n.º 1
0
        private e.Assignment CreateEntityFromAssignment(Assignment a)
        {
            if (a == null)
            {
                return(null);
            }

            e.Assignment result = e.Assignment.CreateAssignment(a.Id, a.Name, a.CreateDate, a.Path);

            return(result);
        }
Exemplo n.º 2
0
        private Assignment CreateAssignmentFromEntity(e.Assignment eAssignment)
        {
            if (eAssignment == null)
            {
                return(null);
            }
            Assignment result = new Assignment()
            {
                Id           = eAssignment.Id,
                Name         = eAssignment.Name,
                FriendlyName = eAssignment.FriendlyName,
                Tagline      = eAssignment.Tagline,
                CreateDate   = eAssignment.CreateDate,
                Path         = eAssignment.Path
            };

            return(result);
        }
Exemplo n.º 3
0
        private e.Assignment CreateEntityFromAssignment(Assignment a)
        {
            if (a == null)
            {
                return(null);
            }

            e.Assignment result = e.Assignment.CreateAssignment(a.Id, a.Name, a.CreateDate, a.Path);

            //e.Assignment result = new e.Assignment()
            //{
            //    Id = a.Id,
            //    Name = a.Name,
            //    FriendlyName = a.FriendlyName,
            //    Tagline = a.Tagline,
            //    CreateDate = a.CreateDate,
            //    Path = a.Path
            //};

            return(result);
        }