public JsonResult Get(string table) { try { try { var Rep = (IRepository <Rest_v5.Models.Order>)UrlParser.GetRepository(table); } catch (Exception) { Object throw; } // MarketContext MC = new MarketContext(); return(Json(Rep.GetList())); // MC.CreateConnection(); //ACProducts2.GetList(); //if (MC.Connected()) // return Json(уоMC.Select(table)); //else // throw new Exception("Connection failed"); } catch (Exception ex) { return(Json("Error: " + ex.Message)); } }