Created
April 30, 2023 21:25
-
-
Save christopherbauer/334a89cd84915049254fb7995be84734 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