public async Task <IActionResult> Create([Bind("ID,Nome")] ConhecaANina conhecaANina) { if (ModelState.IsValid) { _context.Add(conhecaANina); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(conhecaANina)); }
public async Task <IActionResult> Create([Bind("Id,A")] doacao doacao) { if (ModelState.IsValid) { _context.Add(doacao); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(doacao)); }
public async Task <IActionResult> Create([Bind("Id,Catergoria,Item,Valor,Status")] Orcamento orcamento) { if (ModelState.IsValid) { _context.Add(orcamento); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(orcamento)); }
public async Task <IActionResult> Create([Bind("ID,Nome,Email,Telefone,Mensagem")] Feedback feedback) { if (ModelState.IsValid) { _context.Add(feedback); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(feedback)); }