public AbstractDomainModel Get(AbstractDomainModel domainModel)
        {
            searchDoctor = (DomainModel.Models.DoctorsSearch)domainModel;
            switch (searchDoctor.SearchType)
            {
            case 1:
                searchDoctor.Providers = providerRepository.GetProviderBySpecialty(searchDoctor.City, searchDoctor.Specialty);
                break;

            case 2:
                searchDoctor.Providers = providerRepository.GetProviderBySpecialtyLocality(searchDoctor.City, searchDoctor.Specialty, searchDoctor.Locality);
                break;

            case 3:
                searchDoctor.Providers = providerRepository.GetProviderByDoctor(searchDoctor.City, searchDoctor.Doctor);
                break;

            case 4:
                searchDoctor.Providers = providerRepository.GetProviderByDoctorLocality(searchDoctor.City, searchDoctor.Doctor, searchDoctor.Locality);
                break;

            case 5:
                searchDoctor.Providers = providerRepository.GetProviderByHospital(searchDoctor.City, searchDoctor.Hospital);
                break;

            case 6:
                searchDoctor.Providers = providerRepository.GetProviderByHospitalLocality(searchDoctor.City, searchDoctor.Hospital, searchDoctor.Locality);
                break;

            case 7:
                searchDoctor.Providers = providerRepository.GetProviderByLab(searchDoctor.City, searchDoctor.Lab);
                break;

            case 8:
                searchDoctor.Providers = providerRepository.GetProviderByLabLocality(searchDoctor.City, searchDoctor.Lab, searchDoctor.Locality);
                break;

            case 9:
                searchDoctor.Providers = providerRepository.GetProviderByPharmacist(searchDoctor.City, searchDoctor.Pharmacist);
                break;

            case 10:
                searchDoctor.Providers = providerRepository.GetProviderByPharmacistLocality(searchDoctor.City, searchDoctor.Pharmacist, searchDoctor.Locality);
                break;

            case 11:
                searchDoctor.Providers = providerRepository.GetProviderByNurse(searchDoctor.City, searchDoctor.Nurse);
                break;

            case 12:
                searchDoctor.Providers = providerRepository.GetProviderByNurseLocality(searchDoctor.City, searchDoctor.Nurse, searchDoctor.Locality);
                break;

            case 13:
                searchDoctor.Providers = providerRepository.GetProviderByTreatment(searchDoctor.City, searchDoctor.Treatment);
                break;

            case 14:
                searchDoctor.Providers = providerRepository.GetProviderByTreatmentLocality(searchDoctor.City, searchDoctor.Treatment, searchDoctor.Locality);
                break;

            case 15:
                searchDoctor.Cities = cityRepository.GetCitiesByCountry(searchDoctor.Country);
                break;

            case 16:
                searchDoctor.Localities = localityRepository.GetLocalitiesByCountryCity(searchDoctor.Country, searchDoctor.City);
                break;

            default:
                break;
            }

            return(searchDoctor);
        }