public async Task <IActionResult> Create([Bind("FeedbackID,FeedbackQues")] Feedback feedback) { if (ModelState.IsValid) { _context.Add(feedback); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(feedback)); }
public async Task <IActionResult> Create([Bind("DonorID,DonorName,DonorMessage")] Donor donor) { if (ModelState.IsValid) { _context.Add(donor); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(donor)); }
public async Task <IActionResult> Create([Bind("ParkingID,VisitorName,VisitoCarNo,ParkingPurpose")] Parking parking) { if (ModelState.IsValid) { _context.Add(parking); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(parking)); }