public IActionResult Get() { var spells = _repo.GetAll(); return(Ok(spells)); }
public IQueryable <SpellViewModel> GetSpells() { return(_spellRepository.GetAll().Select(SpellMapper.MapEntityToModel).AsQueryable()); }