Beispiel #1
0
        public async Task <IActionResult> Create([Bind("wayBillID,RecipientName,Address,Cell,Date,WayBillInfo,WayBillweight,NumberOfParcels")] TritonExpressWaybill tritonExpressWaybill)
        {
            if (ModelState.IsValid)
            {
                _context.Add(tritonExpressWaybill);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(tritonExpressWaybill));
        }
Beispiel #2
0
        public async Task <IActionResult> Create([Bind("ID,branch,vehicleyear,vehiclemake,vehiclemodel,vehiclereg,wayBillID")] TritonExpressVehicle tritonExpressVehicle)
        {
            if (ModelState.IsValid)
            {
                _context.Add(tritonExpressVehicle);
                await _context.SaveChangesAsync();

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