public IEnumerable <ObjectToRentVM> GetAll() { ObjectToRentService objectToRentService = new ObjectToRentService(); return(objectToRentService.GetAllObjectToRent()); }
public IEnumerable <ObjectToRentVM> GetByUserId(Guid id) { ObjectToRentService objectToRentService = new ObjectToRentService(); return(objectToRentService.GetObjectToRentFromUser(id)); }