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