MVC model query builder implementation