public ActionResult <IEnumerable <Command> > GetAllComands() { var commandItens = _repository.GetAppCommands(); return(Ok(commandItens)); }
public ActionResult <IEnumerable <CommandReadDto> > GetAllCommands() { var commandItems = repository.GetAppCommands(); return(Ok(mapper.Map <IEnumerable <CommandReadDto> >(commandItems))); }