public PartialViewResult Table(string id) { if (!id.Contains("_BO_")) { id += "_BO_"; } var meta = new MetaBoRepo().GetMETA(id); return(PartialView(meta)); }
public async Task <IHttpActionResult> GetDataSources() { try { return(Ok(MetaBoRepo.GetDataSources())); } catch (Exception ex) { return(Ok(ex.Message)); } }
public PartialViewResult Formulaire(string id, string compKey) { if (!id.Contains("_BO_")) { id += "_BO_"; } var meta = new MetaBoRepo().GetMETA(id); ViewBag.compKey = compKey; return(PartialView(meta)); }
public PartialViewResult SubForm(string id) { ViewBag.isSubForm = true; id += "_BO_"; var meta = new MetaBoRepo().GetMETA(id); try { UserRoleManager.Instance.VerifyAccess(meta.BO_DB_NAME); } catch (System.UnauthorizedAccessException ex) { ViewBag.Message = ex.Message; return(PartialView("Unauthorized")); } return(PartialView("Index", meta)); }
public PartialViewResult Index(string id) { if (id != "workflow") { id += "_BO_"; } var meta = new MetaBoRepo().GetMETA(id); try { UserRoleManager.Instance.VerifyAccess(meta.BO_DB_NAME); } catch (System.UnauthorizedAccessException ex) { ViewBag.Message = ex.Message; return(PartialView("Unauthorized")); } return(PartialView(meta)); }
public PartialViewResult Admin(string id) { var meta = new MetaBoRepo().GetMETA(id); return(PartialView("Index", meta)); }