public IEnumerable <HealthPlanDropDownView> GetHealthPlanDropdownList(long angentOrganizationId) { var healthPlans = _corporateAccountRepository.GetHealthPlanAssingedToAgent(angentOrganizationId); var healthPlanDropDownView = new List <HealthPlanDropDownView>(); healthPlanDropDownView.Add(new HealthPlanDropDownView { HealthPlanName = "--- Select ---", Id = -1 }); if (!healthPlans.IsNullOrEmpty()) { healthPlanDropDownView.AddRange(healthPlans.OrderBy(hp => hp.Name).Select(hp => new HealthPlanDropDownView { CorporateTag = hp.Tag, HealthPlanName = hp.Name.ToString(), Id = hp.Id })); } return(healthPlanDropDownView); }