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