public ActionResult <CommadReadDto> GetCommandId(int id) { //devolver datos implementando map var commandId = _commandRepo.GetCommandId(id); if (commandId != null) { return(Ok(_mapper.Map <CommadReadDto>(commandId))); } return(NotFound()); }
public ActionResult <CommadReadDto> GetCommandId(int id) { //devolver datos implementando map var commandId = _commandRepo.GetCommandId(id); if (commandId != null) { return(Ok(_mapper.Map <CommadReadDto>(commandId))); } return(NotFound()); }