Beispiel #1
0
 public static Role ToRole(RoleContract contract)
 {
     Role role = null;
     if (contract != null)
     {
         role = new Role(contract.Name);
     }
     return role;
 }
Beispiel #2
0
 public static RoleContract ToRoleContract(Role role)
 {
     RoleContract contract = null;
     if (role != null)
     {
         contract = new RoleContract();
         contract.Name = role.Name;
     }
     return contract;
 }