public async Task <ActionResult <IEnumerable <CommandOutDto> > > GetAllCommands() { var _items = await _repository.GetAppCommandsAsync(); if (_items.Count() > 0) { return(Ok(_mapper.Map <IEnumerable <CommandOutDto> >(_items))); } else { return(NoContent()); } }