public TeacherModel Create(Teacher t) { return new TeacherModel { parent_url = GetRootUrl(), url = GetUrlByApi("TeacherApi", t.id), //id = t.id, name = t.name }; }
public void Add(Teacher t) { teachers.Add(t); }
public BaseModel CreateSummary(Teacher t) { return new BaseModel() { parent_url = GetRootUrl(), url = GetUrlByApi("TeacherApi", t.id), name = t.name }; }