Beging to add the authorization with a JWT token
This commit is contained in:
@@ -17,13 +17,14 @@ namespace skydiveLogs_api.Data
|
||||
_col = _dataProvider.CollOfJump;
|
||||
}
|
||||
|
||||
public IEnumerable<Jump> GetAll()
|
||||
public IEnumerable<Jump> GetAll(int userId)
|
||||
{
|
||||
return _col.Include(x => x.Aircraft)
|
||||
.Include(x => x.DropZone)
|
||||
.Include(x => x.Gear)
|
||||
.Include(x => x.JumpType)
|
||||
.FindAll()
|
||||
.Where(j => j.UserId == userId)
|
||||
.ToList();
|
||||
}
|
||||
|
||||
@@ -53,6 +54,11 @@ namespace skydiveLogs_api.Data
|
||||
throw new System.NotImplementedException();
|
||||
}
|
||||
|
||||
public IEnumerable<Jump> GetAll()
|
||||
{
|
||||
throw new System.NotImplementedException();
|
||||
}
|
||||
|
||||
private readonly IDataProvider _dataProvider;
|
||||
|
||||
private readonly ILiteCollection<Jump> _col;
|
||||
|
||||
Reference in New Issue
Block a user