예제 #1
0
        public IActionResult FulfillAddress(AddressIndexListingModel model, int OrderId)
        {
            Console.WriteLine(" ????????????????????PONEIJZS???????????????????????????????//// ");
            Address address = new Address()
            {
                Street           = model.Street,
                StreetNumber     = model.StreetNumber,
                AppartmentNumber = model.AppartmentNumber,
                PostCode         = model.PostCode,
                City             = model.City,
                Country          = model.Country
            };

            _address.AddAddress(address);
            _address.AddAddressToOrder(address.Id, OrderId);

            return(RedirectToAction("FulfillClient", "Client", new { OrderId = OrderId }));
            //return View();
        }