public async Task <IActionResult> Create([Bind("CustomerId,Name,Address,DOB,PANno")] Customer customer) { if (ModelState.IsValid) { _context.Add(customer); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(customer)); }