private async Task <GlossaryItem> GetItemIfExistsAsync(int id) { var item = await _glossaryRepository.FindByIdAsync(id); if (item == null) { throw new NonExistingItemException($"Item with id = {id} does not exist"); } return(item); }
private async Task <GlossaryItem> GetItemIfExistsAsync(int id) { var item = await _glossaryRepository.FindByIdAsync(id); if (item == null) { throw new NonExistingItemException($"Item with id = {id} does not exist"); } return(item); }