Update about the relation column "User" for the images
and begin to add a column in "Aircraft"
This commit is contained in:
@@ -19,7 +19,15 @@ namespace skydiveLogs_api.Data
|
||||
|
||||
public IEnumerable<Image> GetAll()
|
||||
{
|
||||
return _col.FindAll().ToList();
|
||||
throw new System.NotImplementedException();
|
||||
}
|
||||
|
||||
public IEnumerable<Image> GetAll(User user)
|
||||
{
|
||||
return _col.Include(x => x.User)
|
||||
.Query()
|
||||
.Where(j => j.User == user)
|
||||
.ToList();
|
||||
}
|
||||
|
||||
public Image GetById(int id)
|
||||
|
||||
Reference in New Issue
Block a user