public async Task <IActionResult> Create([Bind("Id,Vendedor")] Salesman salesman) { if (ModelState.IsValid) { _context.Add(salesman); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(salesman)); }
public async Task <IActionResult> Create([Bind("Id,Name,Numbercard,Dateofbirth,Cpf,Andress,Service")] Solicitation solicitation) { if (ModelState.IsValid) { _context.Add(solicitation); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(solicitation)); }
public async Task <IActionResult> Create([Bind("Id,Nome,Email,DataNascimento,Rg,Cpf,Celular,Telefone,NomeMae,Sexo,Cep,Logradouro,Numero,Complemento,Bairro,Cidade,Estado,QuantFuncionarios,TypeserviceId")] Partner partner) { if (ModelState.IsValid) { _context.Add(partner); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } ViewData["TypeserviceId"] = new SelectList(_context.Typeservice, "Id", "Id", partner.TypeserviceId); return(View(partner)); }
public async Task InsertAsync(Serviceprovider obj) { _context.Add(obj); await _context.SaveChangesAsync(); }
public async Task InsertAsync(Shippingway obj) { _context.Add(obj); await _context.SaveChangesAsync(); }
public async Task InsertAsync(Legalperson legalperson) { _context.Add(legalperson); await _context.SaveChangesAsync(); }
public async Task InsertAsync(Typeservice obj) { _context.Add(obj); await _context.SaveChangesAsync(); }
public async Task InsertAsync(Collaborator obj) { _context.Add(obj); await _context.SaveChangesAsync(); }
public async Task InsertAsync(Plan obj) { _context.Add(obj); await _context.SaveChangesAsync(); }
public async Task InsertAsync(Physicalperson obj) { _context.Add(obj); await _context.SaveChangesAsync(); }
public async Task InsertAsync(Saleschannel obj) { _context.Add(obj); await _context.SaveChangesAsync(); }
public async Task InsertAsync(Representative obj) { _context.Add(obj); await _context.SaveChangesAsync(); }