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