Skip to content

Commit

Permalink
Fix Area service
Browse files Browse the repository at this point in the history
  • Loading branch information
mrica-equinor committed Oct 31, 2024
1 parent 81ddcf1 commit d68d2ac
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions backend/api/Services/AreaService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public async Task<IEnumerable<Area>> ReadByInstallation(string installationCode)

return await GetAreas().Where(a => a.Installation.Id.Equals(installation.Id)).ToListAsync();
}
public async Task<Area> Create(CreateAreaQuery newAreaQuery, List<Pose> positions)
public async Task<Area> Create(CreateAreaQuery newAreaQuery)
{

var installation = await installationService.ReadByInstallationCode(newAreaQuery.InstallationCode, readOnly: true) ??
Expand Down Expand Up @@ -130,12 +130,6 @@ public async Task<Area> Create(CreateAreaQuery newAreaQuery, List<Pose> position
return newArea;
}

public async Task<Area> Create(CreateAreaQuery newArea)
{
var area = await Create(newArea, []);
return area;
}

public async Task<Area> Update(Area area)
{
var entry = context.Update(area);
Expand Down

0 comments on commit d68d2ac

Please sign in to comment.