Exemplo n.º 1
0
        public async Task <IEnumerable <SelectListItem> > GetOwnerSelectListItem(int garageId, int selectedId = 0)
        {
            var owners = await _vehicleFactory.GetOwnerList(garageId);

            return(BuildOwnerSelectListItem(owners.OrderBy(x => x.Name, new SemiNumericComparer()), selectedId));
        }