Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
com.akaver.sportmap
SportMap-ASPNET
Commits
1be2708e
Commit
1be2708e
authored
May 25, 2020
by
Andres Käver
Browse files
userid
parent
01281b3e
Pipeline
#838
passed with stages
in 1 minute and 37 seconds
Changes
5
Pipelines
1
Show whitespace changes
Inline
Side-by-side
BLL.App.DTO/GpsSessionView.cs
View file @
1be2708e
...
...
@@ -26,5 +26,6 @@ namespace BLL.App.DTO
public
string
GpsSessionType
{
get
;
set
;
}
=
default
!;
public
string
UserFirstLastName
{
get
;
set
;
}
=
default
!;
public
Guid
UserId
{
get
;
set
;
}
}
}
\ No newline at end of file
DAL.App.DTO/GpsSessionView.cs
View file @
1be2708e
...
...
@@ -26,5 +26,6 @@ namespace DAL.App.DTO
public
string
GpsSessionType
{
get
;
set
;
}
=
default
!;
public
string
UserFirstLastName
{
get
;
set
;
}
=
default
!;
public
Guid
UserId
{
get
;
set
;
}
}
}
\ No newline at end of file
DAL.App.EF/Repositories/GpsSessionRepository.cs
View file @
1be2708e
...
...
@@ -74,6 +74,7 @@ namespace DAL.App.EF.Repositories
GpsLocationsCount
=
a
.
GpsLocations
!.
Count
,
GpsSessionType
=
a
.
GpsSessionType
!.
Name
,
UserFirstLastName
=
a
.
AppUser
!.
FirstName
+
" "
+
a
.
AppUser
!.
LastName
,
UserId
=
a
.
AppUserId
,
}).
ToListAsync
();
return
result
;
...
...
PublicApi.DTO.v1/GpsSessionView.cs
View file @
1be2708e
...
...
@@ -26,5 +26,7 @@ namespace PublicApi.DTO.v1
public
int
GpsLocationsCount
{
get
;
set
;
}
public
string
UserFirstLastName
{
get
;
set
;
}
=
default
!;
public
Guid
UserId
{
get
;
set
;
}
}
}
\ No newline at end of file
WebApp/ApiControllers/1.0/GpsSessionsController.cs
View file @
1be2708e
...
...
@@ -142,7 +142,7 @@ namespace WebApp.ApiControllers._1._0
await
_bll
.
SaveChangesAsync
();
gpsSession
.
Id
=
bllEntity
.
Id
;
return
CreatedAtAction
(
"
GetGpsSession
"
,
return
CreatedAtAction
(
nameof
(
GetGpsSession
)
,
new
{
id
=
gpsSession
.
Id
,
version
=
HttpContext
.
GetRequestedApiVersion
()?.
ToString
()
??
"0"
},
gpsSession
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment