示例#1
0
        public async Task <IActionResult> Shipment(Guid id)
        {
            AddressVM addressVM = new AddressVM();

            if (signInManager.IsSignedIn(User))
            {
                AppUser appUser = await userManager.GetUserAsync(User);

                if (appUser != null)
                {
                    //shipment
                    var            shipment    = shipperService.GetActive();
                    List <Shipper> shipperList = new List <Shipper>();
                    foreach (var item in shipment)
                    {
                        shipperList.Add(item);
                    }
                    addressVM.Shippers = shipperList;
                }
            }

            return(View(addressVM));
        }