public ActionResult Search(string Location) { MapsEntities GE = new MapsEntities(); var result = GE.Sheet1_.Where(x => x.Name.StartsWith(Location)).Take(50).ToList(); return(Json(result, JsonRequestBehavior.AllowGet)); }
public LinesRepository(MapsEntities context, int currentVersion) { this.context = context; }
//public int CurrentVersionId { get; private set; } public LinesRepository(MapsEntities context) { this.context = context; }
// // GET: /Map/ public ActionResult Index() { MapsEntities GE = new MapsEntities(); return(View(GE.Sheet1_.ToList().Take(50))); }