Created
April 30, 2023 21:20
-
-
Save christopherbauer/34eef4cc7ea081370dc9a47cea7382c3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { DataAccessLayer, User } from "./DataAccessLayer"; | |
export class Service { | |
constructor(readonly dal: DataAccessLayer) {} | |
register(user: User) { | |
return this.dal.insertUser(user); | |
} | |
getUserInfo(id: number) { | |
return this.dal.findUser(id); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment