public IActionResult Get()
        {
            var spells = _repo.GetAll();

            return(Ok(spells));
        }
예제 #2
0
 public IQueryable <SpellViewModel> GetSpells()
 {
     return(_spellRepository.GetAll().Select(SpellMapper.MapEntityToModel).AsQueryable());
 }