public Task <Hero> GetByKey(string key) { _logger.LogDebug($"[{nameof(GetByKey)}] Fetching key: {key} from mock service", key); return(Task.FromResult(MockDataService.GetById(key))); }
public Task <List <Hero> > GetAll() { _logger.LogDebug($"[{nameof(GetAll)}] Fetch from mock service"); return(Task.FromResult(MockDataService.GetHeroes().ToList())); }