public async Task <IActionResult> Create([Bind("IdRekap,TotalPemasukan,Laba,Bulan")] RekapKeuntungan rekapKeuntungan) { if (ModelState.IsValid) { _context.Add(rekapKeuntungan); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(rekapKeuntungan)); }
public async Task <IActionResult> Create([Bind("IdKendaraan,JenisKendaraan1")] JenisKendaraan jenisKendaraan) { if (ModelState.IsValid) { _context.Add(jenisKendaraan); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(jenisKendaraan)); }
public async Task <IActionResult> Create([Bind("IdParkir,NoPolisi,JenisKendaraan")] KendaraanMasukk kendaraanMasukk) { if (ModelState.IsValid) { _context.Add(kendaraanMasukk); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(kendaraanMasukk)); }
public async Task <IActionResult> Create([Bind("IdTarif,JenisKendaraan,Harga")] TarifParkir tarifParkir) { if (ModelState.IsValid) { _context.Add(tarifParkir); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(tarifParkir)); }
public async Task <IActionResult> Create([Bind("IdParkir,Status")] Persetujuan persetujuan) { if (ModelState.IsValid) { _context.Add(persetujuan); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } ViewData["IdParkir"] = new SelectList(_context.KendaraanMasukk, "IdParkir", "JenisKendaraan", persetujuan.IdParkir); return(View(persetujuan)); }
public async Task <IActionResult> Create([Bind("IdParkir,NoPolisi,Tarif")] KendaraanKeluar kendaraanKeluar) { if (ModelState.IsValid) { _context.Add(kendaraanKeluar); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } ViewData["IdParkir"] = new SelectList(_context.Persetujuan, "IdParkir", "IdParkir", kendaraanKeluar.IdParkir); return(View(kendaraanKeluar)); }