Skip to content

Instantly share code, notes, and snippets.

@christopherbauer
Created April 30, 2023 21:25
Show Gist options
  • Save christopherbauer/334a89cd84915049254fb7995be84734 to your computer and use it in GitHub Desktop.
Save christopherbauer/334a89cd84915049254fb7995be84734 to your computer and use it in GitHub Desktop.
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