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); }
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)); }