|
@@ -46,6 +46,16 @@ namespace UnivateProperties_API.Repository.Users
|
46
|
46
|
return item;
|
47
|
47
|
}
|
48
|
48
|
|
|
49
|
+ public List<DetailedOwner> GetAllIndividuals()
|
|
50
|
+ {
|
|
51
|
+ List<DetailedOwner> list = new List<DetailedOwner>();
|
|
52
|
+ foreach(var item in GetAll())
|
|
53
|
+ {
|
|
54
|
+ list.Add(new DetailedOwner(item));
|
|
55
|
+ }
|
|
56
|
+ return list;
|
|
57
|
+ }
|
|
58
|
+
|
49
|
59
|
public DetailedOwner GetIndividual(int id)
|
50
|
60
|
{
|
51
|
61
|
var item = _dbContext.Individuals.FirstOrDefault(x => x.UserId == id);
|
|
@@ -121,8 +131,7 @@ namespace UnivateProperties_API.Repository.Users
|
121
|
131
|
|
122
|
132
|
public List<Individual> GetDetailedAll()
|
123
|
133
|
{
|
124
|
|
- // TODO: GetDetailed
|
125
|
|
- throw new NotImplementedException();
|
|
134
|
+ return _dbContext.Individuals.Include("User").Include("Address").Include("BankAccount").ToList();
|
126
|
135
|
}
|
127
|
136
|
|
128
|
137
|
public int NewId()
|