ill try to get the all ID with status of "Picked-up" in other table. im newbie here im using c# asp.net mvc
this is my code any suggest on how to do. thanks in advance
- var package = _packageService.GetAll().Where(x => x.Status == "Picked-up");
- var shipmentItem = new ShipmentItems
- {
- ShipmentId = model.ShipmentId
- };
- if (package != null)
- {
- shipmentItem.PackageId = package.Id;
- }
- _shipmentItemService.Add(shipmentItem);
- return RedirectToAction("addshipmentitem");
Jaimin ShethiyaPosted Sep 23, 2019, 5:57 AM
Ronika JencyPosted Sep 17, 2019, 1:23 AM
Denmark PusoPosted Sep 16, 2019, 9:03 PM
Mounnad MohamedPosted Sep 16, 2019, 6:19 AM