Selaa lähdekoodia

UserUI Update

master
30117125 4 vuotta sitten
vanhempi
commit
e7961603e2

+ 2
- 2
UnivateProperties_API/Repository/Users/RegisterRepository.cs Näytä tiedosto

347
 
347
 
348
         public SimplePersonDto UserDetails(int userId)
348
         public SimplePersonDto UserDetails(int userId)
349
         {
349
         {
350
-            var individual = _dbContext.Individuals.Where(i => i.UserId == userId).FirstOrDefault();
350
+            var individual = _dbContext.Individuals.Where(i => i.UserId == userId && !i.IsDeleted).FirstOrDefault();
351
 
351
 
352
             if (individual == null)
352
             if (individual == null)
353
             {
353
             {
356
                 {
356
                 {
357
                     return new SimplePersonDto()
357
                     return new SimplePersonDto()
358
                     {
358
                     {
359
-                        Id = individual.Id,
359
+                        Id = agent.Id,
360
                         Name = agent.Name,
360
                         Name = agent.Name,
361
                         Surname = agent.Surname,
361
                         Surname = agent.Surname,
362
                         Email = agent.Email
362
                         Email = agent.Email

Loading…
Peruuta
Tallenna