コード例 #1
0
 // PUT api/<controller>/5
 public void Put(int id, [FromBody] CharacterDto character)
 {
     _manager.PutCharacter(id, character.ToDto <Character>());
 }
コード例 #2
0
 // POST api/<controller>
 public void Post([FromBody] CharacterDto character)
 {
     _manager.PostCharacter(character.ToDto <Character>());
 }