Update about the relation column "User" for the images

and begin to add a column in "Aircraft"
This commit is contained in:
Sébastien André
2020-07-30 18:29:41 +02:00
parent caa7215b71
commit eee6f596ac
12 changed files with 27 additions and 10 deletions

View File

@@ -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)