private static UserPermissions ToUserPermissions(PatientAccessKey patientAccess)
        {
            UserPermissions permission = new UserPermissions( );

            permission.PatientId = patientAccess.PatientID;
            permission.User      = patientAccess.AccessKey;

            return(permission);
        }
        private static RolePermissions ToRolePermissions(PatientAccessKey patientAccess)
        {
            RolePermissions permission = new RolePermissions( );

            permission.PatientId = patientAccess.PatientID;
            permission.Role      = patientAccess.AccessKey;

            return(permission);
        }