Beispiel #1
0
        public async Task <IActionResult> Create([Bind("CustomerId,FirstName,LastName,Rank,Unit")] CustomerInfo customerInfo)
        {
            if (ModelState.IsValid)
            {
                _context.Add(customerInfo);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(customerInfo));
        }
Beispiel #2
0
        public async Task <IActionResult> Create([Bind("UserId,FirstName,LastName,Rank,Privilege")] UserInfo userInfo)
        {
            if (ModelState.IsValid)
            {
                _context.Add(userInfo);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(userInfo));
        }
Beispiel #3
0
        public async Task <IActionResult> Create([Bind("Da3020Id,UserId,Da5515id,DocNumber,Dodic,Nomenclature,LotNumber,Location,Date,ActionTaken,Qtylost,Qtygained,Balance")] SingleInventory singleInventory)
        {
            if (ModelState.IsValid)
            {
                _context.Add(singleInventory);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(singleInventory));
        }
        public async Task <IActionResult> Create([Bind("LineId,Da5515Id,Dodic,Nomenclature,LotNumber,Qtyissued,ResIssued,Qtyreturned,ResReturned,Notes")] SingleTransactionDetails singleTransactionDetails)
        {
            if (ModelState.IsValid)
            {
                _context.Add(singleTransactionDetails);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(singleTransactionDetails));
        }
        public async Task <IActionResult> Create([Bind("Da5515Id,UserId,CustomerId,DocNumber,RecUnit,RecDate,Tidate,Notes,Da5515copy")] LocalTransaction localTransaction)
        {
            if (ModelState.IsValid)
            {
                _context.Add(localTransaction);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(localTransaction));
        }
        public async Task <IActionResult> Create([Bind("Dodic,Nomenclature")] DodicLibrary dodicLibrary)
        {
            if (ModelState.IsValid)
            {
                _context.Add(dodicLibrary);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(dodicLibrary));
        }
        public async Task <IActionResult> Create([Bind("AmmoId,DocNumber,Dodic,Nomenclature,LotNumber,InitialQty,CurrentQty,Location")] LocalInventory localInventory)
        {
            if (ModelState.IsValid)
            {
                _context.Add(localInventory);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(localInventory));
        }