Exemplo n.º 1
0
        private List <ModelOEM> ConvertToOEMS()
        {
            var             oems    = _basicServices.GetOEMS();
            List <ModelOEM> oemList = new List <ModelOEM>();

            foreach (var item in oems)
            {
                ModelOEM mOEM = new ModelOEM
                {
                    ID   = item.ID,
                    Name = item.Name
                };
                oemList.Add(mOEM);
            }
            return(oemList);
        }
Exemplo n.º 2
0
        public ActionResult OEMList()
        {
            var             manufacturers = _basicServices.GetOEMS();
            List <ModelOEM> OEMS          = new List <ModelOEM>();

            foreach (var item in manufacturers)
            {
                ModelOEM OEM = new ModelOEM()
                {
                    Name = item.Name,
                    ID   = item.ID
                };
                OEMS.Add(OEM);
            }
            return(PartialView(OEMS));
        }