public IActionResult Put([FromBody] ChampionModel champions) { var champion = _championServices.Update(champions.ToDomainModel()); return Ok(champion.ToApiModel()); }
public IActionResult Post([FromBody] ChampionModel champion) { _championServices.Add(champion.ToDomainModel()); return CreatedAtAction("Get", new { Id = champion.Id }, champion); }