public ActionResult <CommandReadDTO> GetCommandById(int id) { var commandItem = Repository.GetCommandBy(id); if (commandItem != null) { return(Ok(Mapper.Map <CommandReadDTO>(commandItem))); } else { return(NotFound()); } }
public ActionResult <CommandReadDTO> GetCommandById(int id) { var commandItem = Repository.GetCommandBy(id); if (commandItem != null) { return(Ok(Mapper.Map <CommandReadDTO>(commandItem))); } else { return(NotFound()); } }