Пример #1
0
        public async Task <IActionResult> UpdateSoldier([FromBody] EditSoldier soldier)
        {
            await _soldierService.UpdateSoldier(soldier.LastName, soldier.Rank, soldier.idRoom);

            return(Accepted());
        }
Пример #2
0
        public async Task <ActionResult> UpdateSoldier([FromBody] UpdateSoldierDto soldierDto)
        {
            await _soldierService.UpdateSoldier(soldierDto);

            return(Ok());
        }