mirror of
https://github.com/morbalint/kemkas-backend.git
synced 2026-07-17 21:23:46 +00:00
add 2E Varazslatok and rename Character to Karakter
This commit is contained in:
@@ -24,7 +24,7 @@ public class Character1EController(
|
||||
: ControllerBase
|
||||
{
|
||||
[HttpPost]
|
||||
public async Task<ActionResult<Guid>> StoreNewCharacter([FromBody] Character1eDto dto, [FromQuery]bool isPublic = true)
|
||||
public async Task<ActionResult<Guid>> StoreNewCharacter([FromBody] Karakter1eDto dto, [FromQuery]bool isPublic = true)
|
||||
{
|
||||
if (!ModelState.IsValid)
|
||||
{
|
||||
@@ -50,7 +50,7 @@ public class Character1EController(
|
||||
}
|
||||
|
||||
[HttpGet("{id:guid}")]
|
||||
public async Task<ActionResult<Character1eDto>> GetCharacterById([FromRoute] Guid id)
|
||||
public async Task<ActionResult<Karakter1eDto>> GetCharacterById([FromRoute] Guid id)
|
||||
{
|
||||
var entity = await persistenceService.GetCharacter1EById(id);
|
||||
if (entity is null)
|
||||
@@ -62,7 +62,7 @@ public class Character1EController(
|
||||
}
|
||||
|
||||
[HttpPost("{id:guid}")]
|
||||
public async Task<ActionResult<Guid>> UpdateCharacter([FromRoute] Guid id, [FromBody] Character1eDto dto, [FromQuery]bool isPublic = true)
|
||||
public async Task<ActionResult<Guid>> UpdateCharacter([FromRoute] Guid id, [FromBody] Karakter1eDto dto, [FromQuery]bool isPublic = true)
|
||||
{
|
||||
if (!ModelState.IsValid)
|
||||
{
|
||||
|
||||
@@ -16,7 +16,7 @@ public class Character2EController(
|
||||
) : ControllerBase
|
||||
{
|
||||
[HttpPost]
|
||||
public async Task<ActionResult<Guid>> StoreNewCharacter([FromBody] Character2eDto dto, [FromQuery]bool isPublic = true)
|
||||
public async Task<ActionResult<Guid>> StoreNewCharacter([FromBody] Karakter2eDto dto, [FromQuery]bool isPublic = true)
|
||||
{
|
||||
if (!ModelState.IsValid)
|
||||
{
|
||||
@@ -43,7 +43,7 @@ public class Character2EController(
|
||||
|
||||
|
||||
[HttpGet("{id:guid}")]
|
||||
public async Task<ActionResult<Character2eDto>> GetCharacterById([FromRoute] Guid id)
|
||||
public async Task<ActionResult<Karakter2eDto>> GetCharacterById([FromRoute] Guid id)
|
||||
{
|
||||
var entity = await persistenceService.GetCharacter2EById(id);
|
||||
if (entity is null)
|
||||
@@ -55,7 +55,7 @@ public class Character2EController(
|
||||
}
|
||||
|
||||
[HttpPost("{id:guid}")]
|
||||
public async Task<ActionResult<Guid>> UpdateCharacter([FromRoute] Guid id, [FromBody] Character2eDto dto, [FromQuery]bool isPublic = true)
|
||||
public async Task<ActionResult<Guid>> UpdateCharacter([FromRoute] Guid id, [FromBody] Karakter2eDto dto, [FromQuery]bool isPublic = true)
|
||||
{
|
||||
if (!ModelState.IsValid)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user