mirror of
https://github.com/morbalint/kemkas.git
synced 2026-07-17 19:03:46 +00:00
feat 2e save to DB
not fully tested, but seems to work overall
This commit is contained in:
@@ -12,14 +12,14 @@ namespace Kemkas.Web.Controllers;
|
||||
/// </summary>
|
||||
/// <param name="validationService"></param>
|
||||
/// <param name="dtoToDbModelService"></param>
|
||||
/// <param name="dbModelToDtoService"></param>
|
||||
/// <param name="dbModelToDto1EService"></param>
|
||||
/// <param name="persistenceService"></param>
|
||||
[ApiController]
|
||||
[Route("[controller]")]
|
||||
public class Character1EController(
|
||||
ICharacterValidationService validationService,
|
||||
ICharacter1EDtoToDbModelService dtoToDbModelService,
|
||||
ICharacterDbModelToDtoService dbModelToDtoService,
|
||||
ICharacterDbModelToDto1EService dbModelToDto1EService,
|
||||
ICharacterPersistenceService persistenceService)
|
||||
: ControllerBase
|
||||
{
|
||||
@@ -58,7 +58,7 @@ public class Character1EController(
|
||||
return NotFound();
|
||||
}
|
||||
|
||||
return dbModelToDtoService.Convert(entity);
|
||||
return dbModelToDto1EService.Convert(entity);
|
||||
}
|
||||
|
||||
[HttpPost("{id:guid}")]
|
||||
|
||||
Reference in New Issue
Block a user