public async Task <IActionResult> Edit(int id, [Bind("TravelId,StoreId,StoreName,LocationFrom,LocationTo,Description")] StoreTravel storeTravel)
        {
            if (id != storeTravel.TravelId)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(storeTravel);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!StoreTravelExists(storeTravel.TravelId))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            ViewData["StoreId"] = new SelectList(_context.Store, "StoreId", "Description", storeTravel.StoreId);
            return(View(storeTravel));
        }
        public async Task <IActionResult> Create([Bind("TravelId,StoreId,StoreName,LocationFrom,LocationTo,Description")] StoreTravel storeTravel)
        {
            if (ModelState.IsValid)
            {
                _context.Add(storeTravel);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            ViewData["StoreId"] = new SelectList(_context.Store, "StoreId", "Description", storeTravel.StoreId);
            return(View(storeTravel));
        }