public async Task <IActionResult> Create([Bind("Employeerid,Name,Email,Contact,recuritment,No_ofPost")] Employeer employeer) { if (ModelState.IsValid) { _context.Add(employeer); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(employeer)); }
public async Task <IActionResult> Create([Bind("Queryid,Name,Email,Contact,Message")] query query) { if (ModelState.IsValid) { _context.Add(query); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(query)); }
public async Task <IActionResult> Create([Bind("Customerid,Name,Email,Contact,Qualification")] Customer customer) { if (ModelState.IsValid) { _context.Add(customer); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(customer)); }