public ActionResult <IEnumerable <Command> > GetAllCommands() { var commandItems = _repository.GetAppCommands(); return(Ok(commandItems)); //use ok to return ok 200 }
public ActionResult <IEnumerable <Command> > GetAllCommands() { //variable to hold results var commandItems = _repository.GetAppCommands(); return(Ok(commandItems)); }
public ActionResult <IEnumerable <CommandReadDto> > GetAppCommands() { // variabila ce retine comenzile din "baza de date" var commandsItem = _repository.GetAppCommands(); // 200 success return(Ok(_mapper.Map <IEnumerable <CommandReadDto> >(commandsItem))); }
public ActionResult <IEnumerable <Command> > GetAllCommands() { return(Ok(_repository.GetAppCommands())); }
public ActionResult <IEnumerable <Command> > GetAllCommands() { var commands = _repo.GetAppCommands(); return(Ok(commands)); }
public ActionResult <IEnumerable <CommandReadDto> > GetAllCommands() { var commandItems = _repository.GetAppCommands(); return(Ok(_mapper.Map <IEnumerable <CommandReadDto> >(commandItems))); }