public dtoTemplateAssignment(VersionPermission p) { Id = p.Id; Deleted = p.Deleted; Clone = p.Clone; Edit = p.Edit; Use = p.See; ChangePermission = p.ChangePermission; Type = p.Type; IdVersion = (p.Version != null) ? p.Version.Id : 0; AllowEdit = true; }
public virtual VersionPermission Copy(TemplateDefinition template, TemplateDefinitionVersion version, litePerson person, String ipAddrees, String ipProxyAddress) { VersionPermission n = new VersionPermission(); n.CreateMetaInfo(person, ipAddrees, ipProxyAddress); n.Version = version; n.Clone = Clone; n.Edit = Edit; n.ChangePermission = ChangePermission; n.Type = Type; n.Template = template; n.ToApply = ToApply; return(n); }