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));
        }
Пример #2
0
 public LinesRepository(MapsEntities context, int currentVersion)
 {
     this.context = context;
 }
Пример #3
0
        //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)));
        }