public async Task <IActionResult> Create([Bind("NumQuarto,DescQuarto,StatusQuarto,ValorDiaria,CodReserva")] Room room) { if (ModelState.IsValid) { _context.Add(room); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(room)); }
public async Task <IActionResult> Create([Bind("FuncID,ResID,Id")] EmployeeReserva employeeReserva) { if (ModelState.IsValid) { _context.Add(employeeReserva); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(employeeReserva)); }
public async Task <IActionResult> Create([Bind("CpfHos,Nome,Rg,Nascim,Genero,Profissao,Logradouro,Bairro,Complemento,Cidade,Cep,Telefone,Celular,Email,CpfAcomp")] Guest guest) { if (ModelState.IsValid) { _context.Add(guest); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(guest)); }
public async Task <IActionResult> Create([Bind("CpfFunc,Nome,Logradouro,Bairro,Complemento,Cidade,Cep,Telefone,DtNasc,DtAdmissao,Email,Cargo")] Employee employee) { if (ModelState.IsValid) { _context.Add(employee); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(employee)); }
public async Task <IActionResult> Create([Bind("CodReserva,NomeHos,DataCheckin,DataCheckout,QtdAcomp,CpfFunc,CpfHos,NumQuarto")] Reserva reserva) { if (ModelState.IsValid) { _context.Add(reserva); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(reserva)); }
public async Task <IActionResult> Create([Bind("CodPagamento,NumQuarto,TipoQuarto,NomeHos,QtdCriancas,QtdAdu,Valor,DataCheckin,DataCheckout,HrCheckin,HrCheckout,CpfFunc,CpfHos,Taxa,FormaPag")] Payment payment) { if (ModelState.IsValid) { _context.Add(payment); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(payment)); }
public async Task <IActionResult> Create([Bind("CpfAcom,Nome,Rg,Nascim,Genero,Logradouro,Bairro,Complemento,Cidade,Cep,Telefone,Email,Celular,Responsavel,CpfHos")] Escorts escorts) { if (ModelState.IsValid) { _context.Add(escorts); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(escorts)); }