public RuleRoleLinkDTO(ITS_WF_RuleRoleLink rolelink) { ID = rolelink.ID; RuleID = rolelink.RuleID; RoleID = rolelink.RoleID; UserCreated = rolelink.UserCreated; UserUpdated = rolelink.UserUpdated; DateCreated = rolelink.DateCreated; DateUpdated = rolelink.DateUpdated; }
public RuleRoleLinkDTO(ITS_WF_RuleRoleLink rolelink, bool AddExtra) { ID = rolelink.ID; RuleID = rolelink.RuleID; RoleID = rolelink.RoleID; UserCreated = rolelink.UserCreated; UserUpdated = rolelink.UserUpdated; DateCreated = rolelink.DateCreated; DateUpdated = rolelink.DateUpdated; if (AddExtra) { Workflowrule = MapService.MapOne <ITS_WF_Checklist, RuleDTO>(rolelink.ITS_WF_Checklist); } }