Commit 1be2708e authored by Andres Käver's avatar Andres Käver
Browse files

userid

parent 01281b3e
Pipeline #838 passed with stages
in 1 minute and 37 seconds
...@@ -26,5 +26,6 @@ namespace BLL.App.DTO ...@@ -26,5 +26,6 @@ namespace BLL.App.DTO
public string GpsSessionType { get; set; } = default!; public string GpsSessionType { get; set; } = default!;
public string UserFirstLastName { get; set; } = default!; public string UserFirstLastName { get; set; } = default!;
public Guid UserId { get; set; }
} }
} }
\ No newline at end of file
...@@ -26,5 +26,6 @@ namespace DAL.App.DTO ...@@ -26,5 +26,6 @@ namespace DAL.App.DTO
public string GpsSessionType { get; set; } = default!; public string GpsSessionType { get; set; } = default!;
public string UserFirstLastName { get; set; } = default!; public string UserFirstLastName { get; set; } = default!;
public Guid UserId { get; set; }
} }
} }
\ No newline at end of file
...@@ -74,6 +74,7 @@ namespace DAL.App.EF.Repositories ...@@ -74,6 +74,7 @@ namespace DAL.App.EF.Repositories
GpsLocationsCount = a.GpsLocations!.Count, GpsLocationsCount = a.GpsLocations!.Count,
GpsSessionType = a.GpsSessionType!.Name, GpsSessionType = a.GpsSessionType!.Name,
UserFirstLastName = a.AppUser!.FirstName + " " + a.AppUser!.LastName, UserFirstLastName = a.AppUser!.FirstName + " " + a.AppUser!.LastName,
UserId = a.AppUserId,
}).ToListAsync(); }).ToListAsync();
return result; return result;
......
...@@ -26,5 +26,7 @@ namespace PublicApi.DTO.v1 ...@@ -26,5 +26,7 @@ namespace PublicApi.DTO.v1
public int GpsLocationsCount { get; set; } public int GpsLocationsCount { get; set; }
public string UserFirstLastName { get; set; } = default!; public string UserFirstLastName { get; set; } = default!;
public Guid UserId { get; set; }
} }
} }
\ No newline at end of file
...@@ -142,7 +142,7 @@ namespace WebApp.ApiControllers._1._0 ...@@ -142,7 +142,7 @@ namespace WebApp.ApiControllers._1._0
await _bll.SaveChangesAsync(); await _bll.SaveChangesAsync();
gpsSession.Id = bllEntity.Id; gpsSession.Id = bllEntity.Id;
return CreatedAtAction("GetGpsSession", return CreatedAtAction(nameof(GetGpsSession),
new {id = gpsSession.Id, version = HttpContext.GetRequestedApiVersion()?.ToString() ?? "0"}, new {id = gpsSession.Id, version = HttpContext.GetRequestedApiVersion()?.ToString() ?? "0"},
gpsSession); gpsSession);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment