Beispiel #1
0
        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));
        }
Beispiel #2
0
        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));
        }
Beispiel #3
0
        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));
        }
Beispiel #4
0
        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));
        }