Created
September 15, 2015 13:20
-
-
Save jmarmolejos/3a28a5352ddef66a6326 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public async Task<List<Notification>> Get() | |
{ | |
var uriBuilder = GetCouchUrl(); | |
using (var client = new MyCouchClient(uriBuilder.Build())) | |
{ | |
var notifications = await client.Views.QueryAsync<Notification>(new QueryViewRequest("notifications-doc", "all-notifications")); | |
return notifications.Rows.Select(r => r.Value).ToList(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment