public override HomeIndexViewModel Handle() { var viewmodel = new HomeIndexViewModel(); viewmodel.Message = "Welcome to PetaPoco"; viewmodel.BudgetPeriod = _databaseQuery.First <BudgetPeriod>(""); viewmodel.Expenses = _databaseQuery .Fetch <Expense>("where BudgetPeriodId = @0", viewmodel.BudgetPeriod.BudgetPeriodId) .OrderBy(x => x.Description) .ToList(); return(viewmodel); }