Mvc: Use parameters instead of query in components