public async Task <IEnumerable <GuestbookEntry> > GetGuestbookEntries() { using (var db = _sqlConnectionFactory.Open()) { const string sql = @"SELECT Name, Message, CreatedAt as Date FROM GuestbookEntry ORDER BY CreatedAt ASC;"; return(await db.QueryAsync <GuestbookEntry>(sql)); } }