public async Task <IActionResult> GetRentByUserId(int userId) { Rent rent = await _rentRepository.GetByUserId(userId); var response = new RentDto(rent); return(Ok(response)); }
public IEnumerable <Rent> GetByUserId(Guid user_id) { return(_rentRepository.GetByUserId(user_id)); }