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));
        }
Esempio n. 2
0
        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));
        }
Esempio n. 3
0
        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));
        }