Add Gear controller/service/repo and relations in db between Jumps and others objects

This commit is contained in:
Sébastien André
2019-11-22 23:19:17 +01:00
parent 29740709c6
commit b9a29bcd79
12 changed files with 178 additions and 13 deletions

View File

@@ -19,7 +19,12 @@ namespace skydiveLogs_api.Data
public IEnumerable<Jump> GetAll()
{
return _col.FindAll().ToList();
return _col.Include(x => x.Aircraft)
.Include(x => x.DropZone)
.Include(x => x.Gear)
.Include(x => x.JumpType)
.FindAll()
.ToList();
}
public Jump GetById(int id)