public JsonResult BarGraph() { var data = photorepo.ImageSell(); var jsonResult = Json(data, JsonRequestBehavior.AllowGet); return(jsonResult); }