Explicitly use SDK namespace when necessary

This commit is contained in:
Pat Hartl 2024-01-02 20:51:33 -06:00
parent 9c28082180
commit 7a5129ed1a
3 changed files with 3 additions and 6 deletions

View file

@ -2,7 +2,6 @@
using LANCommander.Data.Models;
using LANCommander.Extensions;
using LANCommander.Models;
using LANCommander.SDK;
using LANCommander.Services;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Identity;

View file

@ -3,7 +3,6 @@ using LANCommander.Data;
using LANCommander.Data.Models;
using LANCommander.Extensions;
using LANCommander.Models;
using LANCommander.SDK;
using LANCommander.Services;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Identity;
@ -60,7 +59,7 @@ namespace LANCommander.Controllers.Api
}
[HttpGet("{id}/Manifest")]
public async Task<GameManifest> GetManifest(Guid id)
public async Task<SDK.GameManifest> GetManifest(Guid id)
{
var manifest = await GameService.GetManifest(id);

View file

@ -3,7 +3,6 @@ using LANCommander.Data;
using LANCommander.Data.Models;
using LANCommander.Extensions;
using LANCommander.Models;
using LANCommander.SDK;
using LANCommander.Services;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Identity;
@ -111,8 +110,8 @@ namespace LANCommander.Controllers.Api
{
await file.CopyToAsync(stream);
}
return Ok(save);
return Ok(Mapper.Map<SDK.Models.GameSave>(save));
}
}
}