Added basics for runnerorg controller

ref #13
This commit is contained in:
2020-12-03 19:20:53 +01:00
parent 0d5a2109d5
commit a35e6d0a9f
3 changed files with 129 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
import { IsString } from 'class-validator';
import { RunnerOrganisation } from './RunnerOrganisation';
export class CreateRunnerOrganisation {
@IsString()
name: string;
public async toRunnerOrganisation(): Promise<RunnerOrganisation> {
let newRunnerOrganisation: RunnerOrganisation = new RunnerOrganisation();
newRunnerOrganisation.name = this.name;
return newRunnerOrganisation;
}
}