Skip to content

Instantly share code, notes, and snippets.

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