import { IUser , User } from '../models/user' ; export async function createNewUser ( userData ) { let user = User . Builder ( userData ) ; let success = await user . save ( ) ; if ( success ) { return user ; } else { return false ; } }