public ActionResult <ExpireReadDto> GetExpireById(int id) { var item = _repository.GetExpireById(id); if (item != null) { return(Ok(_mapper.Map <ExpireReadDto>(item))); } else { return(NotFound()); } }