public ActionResult <IEnumerable <VehicleTypesReadDto> > GetDataByID(int ID) { var carddatabyID = _repo.GetDataByID(ID); if (carddatabyID != null) { return(Ok(_mapper.Map <VehicleTypesReadDto>(carddatabyID))); } return(NotFound()); }