private List<Breed> ModifyMixedBreed(int speciesId, Breed[] rBreeds) { //need to change Mixed to the following three item //Mixed (< 20 Pounds),Mixed (20-100 Pounds), Mixed (> 20 Pounds) List<Breed> mBreed = new List<Breed>(); bool AddMix = false; for (int i = 0; i < rBreeds.Count(); i++) { //not add mixed if (rBreeds[i].Name.Trim().ToLower().Equals("mixed")) { if(speciesId==1) AddMix = true; } else { mBreed.Add(rBreeds[i]); } } if (AddMix) { //mBreed.Insert(0, new Breed() { Id = 10003, Name = "Mixed(>100 Pounds)" }); //mBreed.Insert(0, new Breed() { Id = 10002, Name = "Mixed(20-100 Pounds)" }); mBreed.Insert(0, new Breed() { Id = 10000, Name = "Mixed Breed" }); } return mBreed; }