private List <SelectListItem> GetColorType() { ColorTypeFilter filter = new ColorTypeFilter(); filter.Name = ""; return(ColorTypeService.Get(filter).Select(b => new SelectListItem(b.Name, b.Id.ToString())).ToList()); }
private List <SelectListItem> GetColorTypes() { return(ColorTypeService.Get(new ColorTypeFilter()).Select(c => new SelectListItem(c.Name, c.Id.ToString())).ToList()); }