public async Task <IActionResult> Edit(int id, [Bind("Id,ImagePath,ImageText,Title,SubTitle,Duration,Code,Price,AboutTourText,AboutTourNumber,TourImage,TourName,TourInformation,TourVideo,TourCheckIn,TourText,TourTime,TourAdditional,TourSecondAdditional,Number,SecondNumber,Email,SiteAddress,Address,EventId")] BakuJara bakuJara) { if (id != bakuJara.Id) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(bakuJara); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!BakuJaraExists(bakuJara.Id)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } ViewData["EventId"] = new SelectList(_context.Events, "Id", "Id", bakuJara.EventId); return(View(bakuJara)); }
public async Task <IActionResult> Edit(int id, [Bind("Id,ImagePath,ImageTitle,Title,SubTitle,Number,Email,Address,lat,lng")] Contact contact) { if (id != contact.Id) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(contact); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!ContactExists(contact.Id)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(contact)); }
public async Task <IActionResult> Edit(int id, [Bind("Id,FirstSlide,FirstSlideText,SecondSlide,SecondSlideText,ThirdSlide,ThirdSlideText,FourthSlide,FourthSlideText,Title,SubTitle")] AzeTitleSubtitle azeTitleSubtitle) { if (id != azeTitleSubtitle.Id) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(azeTitleSubtitle); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!AzeTitleSubtitleExists(azeTitleSubtitle.Id)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(azeTitleSubtitle)); }
public async Task <IActionResult> Edit(int id, [Bind("ImageTitle,Text,SubText,Id,ImagePath,Title,SubTitle")] About about) { if (id != about.Id) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(about); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!AboutExists(about.Id)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(about)); }
public async Task <IActionResult> Edit(int id, [Bind("Id,ImagePath,ImageText,Title,SubTitle,Duration,Code,Price,AboutTourText,AboutTourNumber,TourImage,TourName,TourInformation,TourVideo,TourCheckIn,TourText,TourTime,TourAdditional,TourAdditionalSecond,Number,SecondNumber,Email,SiteAddress,Address")] ShakiPage shakiPage) { if (id != shakiPage.Id) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(shakiPage); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!ShakiPageExists(shakiPage.Id)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(shakiPage)); }
public async Task <IActionResult> Edit(int id, [Bind("ImagePath,ImageTitle,Title,SubTitle,Key,Value,Number,Email,Address,lat,lng,UserId,ServiceId,Id,Name")] Transfer transfer) { if (id != transfer.Id) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(transfer); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!TransferExists(transfer.Id)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } ViewData["ServiceId"] = new SelectList(_context.Services, "Id", "Id", transfer.ServiceId); return(View(transfer)); }
public async Task <IActionResult> Edit(int id, [Bind("Id,AboutInsuarance")] InsuaranceDescription insuaranceDescription) { if (id != insuaranceDescription.Id) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(insuaranceDescription); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!InsuaranceDescriptionExists(insuaranceDescription.Id)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(insuaranceDescription)); }
public async Task <IActionResult> Edit(int id, [Bind("Id,ImagePath,ImageTitle,Title,SubTitle,Key,Value,Text,SubText,Phone,OtherPhone,Email,SiteAddress,Address,ServiceId")] Vip vip) { if (id != vip.Id) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(vip); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!VipExists(vip.Id)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } ViewData["ServiceId"] = new SelectList(_context.Services, "Id", "Id", vip.ServiceId); return(View(vip)); }
public async Task <IActionResult> Edit(int id, [Bind("Id,Name,Surname,Age")] DemoStudent demoStudent) { if (id != demoStudent.Id) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(demoStudent); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!DemoStudentExists(demoStudent.Id)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(demoStudent)); }
public async Task <IActionResult> Edit(int id, [Bind("Id,TourIncludedText,TourIncludedIcon")] BronTitle bronTitle) { if (id != bronTitle.Id) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(bronTitle); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!BronTitleExists(bronTitle.Id)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(bronTitle)); }
public async Task <IActionResult> Edit(int id, [Bind("Id,TourImage,TourIcon,TourName,TourTitle,TourTime,TourAction,ServiceId,Duration,TourId")] Incoming incoming) { if (id != incoming.Id) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(incoming); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!IncomingExists(incoming.Id)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } ViewData["ServiceId"] = new SelectList(_context.Services, "Id", "Id", incoming.ServiceId); ViewData["TourId"] = new SelectList(_context.Tours, "Id", "ImagePath", incoming.TourId); return(View(incoming)); }
public async Task <IActionResult> Edit(int id, [Bind("Id,StaticPage,ImagePath,ImageText,Title,SubTitle,_IsService")] TitleAndSubTitle titleAndSubTitle) { if (id != titleAndSubTitle.Id) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(titleAndSubTitle); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!TitleAndSubTitleExists(titleAndSubTitle.Id)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(titleAndSubTitle)); }
public async Task <IActionResult> Edit(int id, [Bind("Id,HotelLink,ListHotel")] HotelListDescription hotelListDescription) { if (id != hotelListDescription.Id) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(hotelListDescription); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!HotelListDescriptionExists(hotelListDescription.Id)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(hotelListDescription)); }
public async Task <IActionResult> Edit(int id, [Bind("Id,Name,Surname,Email,Number,Messaging")] Message message) { if (id != message.Id) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(message); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!MessageExists(message.Id)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(message)); }
public async Task <IActionResult> Edit(int id, [Bind("ImageTitle,Text,SubText,AboutId,Id,ImagePath,Title,SubTitle")] Compliance compliance) { if (id != compliance.Id) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(compliance); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!ComplianceExists(compliance.Id)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } ViewData["AboutId"] = new SelectList(_context.Abouts, "Id", "Id", compliance.AboutId); return(View(compliance)); }
public async Task <IActionResult> Edit(int id, [Bind("Id,Name,Surname,Email,Number,PassportNumber,Birth,Parent,Child,Baby,Message")] PersonalInformation personalInformation) { if (id != personalInformation.Id) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(personalInformation); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!PersonalInformationExists(personalInformation.Id)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(personalInformation)); }
public async Task <IActionResult> Edit(int id, [Bind("Id,ImagePath,ImageTitle,Title,Subtitle,Text,ServiceId")] Emergency emergency) { if (id != emergency.Id) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(emergency); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!EmergencyExists(emergency.Id)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } ViewData["ServiceId"] = new SelectList(_context.Services, "Id", "Id", emergency.ServiceId); return(View(emergency)); }
public async Task <IActionResult> Edit(int id, [Bind("ImageTitle,_IsVisible,Id,ImagePath,Title,SubTitle")] Service service) { if (id != service.Id) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(service); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!ServiceExists(service.Id)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(service)); }
public async Task <IActionResult> Edit(int id, [Bind("Id,ImagePath,ImageTitle,AboutTourText,AboutTourNumber")] BronLankaran bronLankaran) { if (id != bronLankaran.Id) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(bronLankaran); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!BronLankaranExists(bronLankaran.Id)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(bronLankaran)); }
public async Task <IActionResult> Edit(int id, [Bind("Id,TourInclude")] GoyGolDescription goyGolDescription) { if (id != goyGolDescription.Id) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(goyGolDescription); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!GoyGolDescriptionExists(goyGolDescription.Id)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(goyGolDescription)); }
public async Task <IActionResult> Edit(int id, [Bind("Id,Price,ImagePath,ImageTitle,Title,SubTitle,Phone,OtherPhone,Email,SiteAddress,Address,ServiceId,TourId")] Transport transport) { if (id != transport.Id) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(transport); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!TransportExists(transport.Id)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } ViewData["ServiceId"] = new SelectList(_context.Services, "Id", "Id", transport.ServiceId); ViewData["TourId"] = new SelectList(_context.Tours, "Id", "ImagePath", transport.TourId); return(View(transport)); }
public async Task <IActionResult> Edit(int id, [Bind("Id,Name,Price,Description,TypeOf,Value")] BronHotel bronHotel) { if (id != bronHotel.Id) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(bronHotel); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!BronHotelExists(bronHotel.Id)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(bronHotel)); }
public async Task <IActionResult> Edit(int id, [Bind("Id,AboutTour")] QabalaDescriptions qabalaDescriptions) { if (id != qabalaDescriptions.Id) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(qabalaDescriptions); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!QabalaDescriptionsExists(qabalaDescriptions.Id)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(qabalaDescriptions)); }
public async Task <IActionResult> Edit(int id, [Bind("Id,ImagePath,ImageText,Title,SubTitle,Name,Price,Description,ServiceId,UserId")] GroupTour groupTour) { if (id != groupTour.Id) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(groupTour); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!GroupTourExists(groupTour.Id)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } ViewData["ServiceId"] = new SelectList(_context.Services, "Id", "Id", groupTour.ServiceId); return(View(groupTour)); }
public async Task <IActionResult> Edit(int id, [Bind("Id,TourImage,TourName,TourPrice,TourTime,TourAction,TourDuration")] MainPage mainPage) { if (id != mainPage.Id) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(mainPage); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!MainPageExists(mainPage.Id)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(mainPage)); }
public async Task <IActionResult> Edit(int id, [Bind("Id,Name,Surname,Email,Number,Message,Tour,DateTime")] SimpleInformation simpleInformation) { if (id != simpleInformation.Id) { return(NotFound()); } if (ModelState.IsValid) { try { _context.Update(simpleInformation); await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!SimpleInformationExists(simpleInformation.Id)) { return(NotFound()); } else { throw; } } return(RedirectToAction(nameof(Index))); } return(View(simpleInformation)); }