public ActionResult Badge(Guid id)
{
// alignment": [
// { "name": "CCSS.ELA-Literacy.RST.11-12.3",
// "url": "http://www.corestandards.org/ELA-Literacy/RST/11-12/3",
// "description": "Follow precisely a complex multistep procedure when carrying out experiments, taking measurements, or performing technical tasks; analyze the specific results based on explanations in the text."
// },
// { "name": "CCSS.ELA-Literacy.RST.11-12.9",
// "url": "http://www.corestandards.org/ELA-Literacy/RST/11-12/9",
// "description": " Synthesize information from a range of sources (e.g., texts, experiments, simulations) into a coherent understanding of a process, phenomenon, or concept, resolving conflicting information when possible."
// }
//]
var badge = RepositoryFactory.BadgeRepository.GetNullableById(id);
if (badge == null) return HttpNotFound();
var obj = new
{
name = badge.Name,
description = badge.Description,
image = badge.ImageUrl,
criteria = AbsoluteUrl("Criteria", "Public", id: id),
tags = new[] { "ucdbadges" },
issuer = AbsoluteUrl("Organization"),
};
return new JsonNetResult(obj);
}