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); }
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); }
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); }