Beispiel #1
0
        protected List <SelectListItem> getShippingItems(int items)
        {
            var shipEntities = _shippingRepository.GetShipChargesPerCarrier(items);
            var list         = new List <SelectListItem>();

            foreach (var item in shipEntities)
            {
                list.Add(new SelectListItem
                {
                    Value = item.Charge.ToString(),
                    Text  = item.CarrierName
                });
            }
            return(list);
        }