Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tsi1-backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Rodrigo Sastre Marotta
tsi1-backend
Merge requests
!20
merge from develop
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
merge from develop
develop
into
master
Overview
0
Commits
39
Pipelines
1
Changes
1
Merged
Lucca Santangelo Dodera
requested to merge
develop
into
master
4 years ago
Overview
0
Commits
39
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Viewing commit
5b245971
Prev
Next
Show latest version
1 file
+
3
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
5b245971
Update TenantService.cs
· 5b245971
Lucca Santangelo Dodera
authored
4 years ago
Tsi1.Api/Tsi1.BusinessLayer/Services/TenantService.cs
+
3
−
3
Options
using
AutoMapper
;
using
AutoMapper
;
using
Microsoft.EntityFrameworkCore
;
using
System
;
using
System.Collections.Generic
;
@@ -133,7 +133,7 @@ namespace Tsi1.BusinessLayer.Services
.
Where
(
x
=>
x
.
Name
!=
TenantAdmin
.
Name
)
.
ToListAsync
();
List
<
TenantPreviewDto
>
tenantDtos
=
new
List
<
TenantPreviewDto
>();
var
tenantDtos
=
new
List
<
TenantPreviewDto
>();
foreach
(
var
tenant
in
tenants
)
{
var
tenantDto
=
_mapper
.
Map
<
TenantPreviewDto
>(
tenant
);
@@ -156,7 +156,7 @@ namespace Tsi1.BusinessLayer.Services
.
Where
(
x
=>
x
.
Name
!=
TenantAdmin
.
Name
)
.
ToListAsync
();
List
<
TenantCourseDto
>
tenantDtos
=
new
List
<
TenantCourseDto
>();
var
tenantDtos
=
new
List
<
TenantCourseDto
>();
foreach
(
var
tenant
in
tenants
)
{
var
tenantDto
=
_mapper
.
Map
<
TenantCourseDto
>(
tenant
);
Loading