public async Task <ActionResult <int> > GetAllAttendeesLengthForItemId(string itemId) { if (!await _itemRepository.ExistItemByIdAsync(itemId)) { return(NotFound()); } var model = await _attendeeRepository.GetAllAttendeesLengthForItemIdAsync(itemId); return(Ok(model)); }