public JsonResult CreateRequest(InfoRequestModel request) { var credentials = SqlConnectionSessionManager.GetActualConnectionCredentials(); request = _SQL.StressRequest(request, credentials); return(JsonHelper.Success("Estrés Terminado", request)); }
public ViewResult CreateRequest() { var credentials = SqlConnectionSessionManager.GetActualConnectionCredentials(); ViewBag.DatabaseNameList = DropDownHelper.GetDropdown(_SQL.GetAllDatabases(credentials), x => x.Name, x => x.Name); return(View()); }
public JsonResult Index(ConecctionCredential model) { if (_ISQL.TestConnection(model)) { SqlConnectionSessionManager.SaveConnection(model); return(JsonHelper.Success("La conexión con el servidor fué exitosa")); } return(JsonHelper.Fail("Lo sentimos, servidor no encontrado o fuera del alcance")); }
public JsonResult GetTablesDB(string database) { var credentials = SqlConnectionSessionManager.GetActualConnectionCredentials(); return(Json(new { tablesnames = _SQL.GetAllTables(credentials, database) })); }