public IActionResult Get(int id)
        {
            var spell = _repo.GetById(id);

            return(Ok(spell));
        }
예제 #2
0
 public SpellViewModel GetSpellById(int id)
 {
     return(SpellMapper.MapEntityToModel(_spellRepository.GetById(id)));
 }