public ActionResult <IEnumerable <ExpireReadDto> > GetExpireByUserId(string id) { var item = _repository.GetExpiresByUserId(id); if (item.Count() != 0) { return(Ok(_mapper.Map <IEnumerable <ExpireReadDto> >(item))); } else { return(NotFound()); } }