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)); }
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)); }