public ActionResult GetSprites() { byte[] imageBody = _resourceManager.GetBinaryResource("sprites.png"); string mimeType = "image/png"; return(File(imageBody, mimeType)); }
public ActionResult GetEmbeddedImage(string name) { byte[] imageBody = _resourceManager.GetBinaryResource(name); string mimeType = "image/png"; return(File(imageBody, mimeType)); }