Add a link betweend a gear to the connected user.
This commit is contained in:
@@ -19,7 +19,15 @@ namespace skydiveLogs_api.Data
|
||||
|
||||
public IEnumerable<Gear> GetAll()
|
||||
{
|
||||
return _col.FindAll().ToList();
|
||||
throw new System.NotImplementedException();
|
||||
}
|
||||
|
||||
public IEnumerable<Gear> GetAll(User connectedUser)
|
||||
{
|
||||
return _col.Include(x => x.User)
|
||||
.Query()
|
||||
.Where(j => j.User.Id == user.Id)
|
||||
ToList();
|
||||
}
|
||||
|
||||
public Gear GetById(int id)
|
||||
|
||||
Reference in New Issue
Block a user