public ActionResult GetTooltip(BrokerEntityType type, int uniqueid)
 {
     List<string> res = _provider.GetTooltip(type, uniqueid);
     return new ContentResult {
         Content = res.StrJoin("<br/>")
     };
 }
 public ActionResult EntityLinker(BrokerEntityType type, FilterModel<int> filter, int[] ids = null)
 {
     switch (Request.RequestType.ToUpper()) {
         case "GET":
             return PartialView(new Tuple<RawEntityWithLink>(_provider.GetEntity(filter.id, type)));
         case "PUT":
             _provider.EntityLinkerPut(filter.id, type);
             TaskRunner.Instance.AddAction(() => _provider.ApplyLinker(filter.id, type, false));
             break;
         case "POST":
             _provider.EntityLinkerPost(filter.id, type, ids);
             TaskRunner.Instance.AddAction(() => _provider.ApplyLinker(filter.id, type, false));
             break;
         case "DELETE":
             _provider.EntityLinkerDelete(filter.id, type);
             break;
     }
     return PartialView("_RawEntityWriter", new Tuple<RawEntityWithLink, string>(_provider.GetEntity(filter.id, type), string.Empty));
 }
 public ActionResult LiveSearch(BrokerEntityType type, int id, string search, bool all = true)
 {
     var data = _provider.LiveSearch(type, id, search, all);
     return PartialView("_ListRawEntityWriter", data);
 }