public List <Diagnosis> SearchByNameOrCode(string name) { List <Diagnosis> mDiagnosisList = new List <Diagnosis>(); if (!string.IsNullOrEmpty(name)) { mDiagnosisList = diagnosisRepository.SearchByNameOrCode(name); } //if (!string.IsNullOrEmpty(name)) //{ // List<Diagnosis> diagnosisName = diagnosisRepository.SearchByName(name); // mDiagnosisList.Concat(diagnosisName).ToList(); //} return(mDiagnosisList); }