public ActionResult Download(String id)
{
HoloTableController._lockMap[id] = HoloTableController._lockMap.GetValue(id, new Object());
lock (HoloTableController._lockMap[id])
{
var model = new DetailModel(id);
var js_handle = this.Request.Cookies["js_handle"];
var handle = id;
if (js_handle != null && !String.IsNullOrWhiteSpace(js_handle.Value))
{
handle = js_handle.Value;
}
return File(model.GetBytes(), "application/xml", String.Format("{0}.xml", handle));
}
}