public async Task <IActionResult> Create([Bind("Bid,BeautyName,BeautyPrice,BQty")] BeautynSpa beautynSpa) { if (ModelState.IsValid) { _context.Add(beautynSpa); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(beautynSpa)); }
public async Task <IActionResult> Create([Bind("Hid,HotelName,HotelPrice,HDateCheckInDate,HDateCheckOutDate,HQty")] Hotel hotel) { if (ModelState.IsValid) { _context.Add(hotel); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(hotel)); }
public async Task <IActionResult> Create([Bind("Rid,RestName,RestPrice,RDateCheckInDate,RDateCheckOutDate,RQty")] Restaurant restaurant) { if (ModelState.IsValid) { _context.Add(restaurant); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(restaurant)); }
public async Task <IActionResult> Create([Bind("Actid,ActName,ActPrice,AQty")] Activity activity) { if (ModelState.IsValid) { _context.Add(activity); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(activity)); }