public ActionResult <IEnumerable <CommandReadDto> > GetAllCommands() { var commandItems = _repo.GetAllComands(); if (commandItems != null) { return(Ok(_mapper.Map <IEnumerable <CommandReadDto> >(commandItems))); } return(NotFound()); }
public ActionResult <IEnumerable <CommandReadDto> > GetAllCommands() { var commandItems = _repository.GetAllComands(); return(Ok(_mapper.Map <IEnumerable <CommandReadDto> >(commandItems))); }