public async Task <ContentResult> Get(bool refreshCard = false, bool refresh = false) { switch (Request.Headers["Accept"]) { case "application/vnd.microsoft.card.adaptive": return(new ContentResult() { Content = await ReleaseFeaturesToCardHelper.GetCardAsync(refresh : refresh, refreshCard : refreshCard), ContentType = "application/vnd.microsoft.card.adaptive" }); case "application/json": return(new ContentResult() { Content = JsonConvert.SerializeObject(await ReleaseFeaturesHelper.GetReleasesAsync(refresh: refresh)), ContentType = "application/json" }); default: return(new ContentResult() { Content = "<html><body><pre>" + await ReleaseFeaturesToCardHelper.GetCardAsync(refresh : refresh, refreshCard : refreshCard) + "</pre></body></html>", ContentType = "text/html" }); } }
public async Task <ContentResult> Get() { return(new ContentResult() { Content = await ReleaseFeaturesToCardHelper.GetCardAsync(), ContentType = "application/json" }); }
public string GetCardUri() { return(ReleaseFeaturesToCardHelper.GetCardUri()); }