Add Gear controller/service/repo and relations in db between Jumps and others objects
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user