public DoctorMV openPatientCreate(int id = 0, DoctorMV model = null)
        {
            LookupBussiness look = new LookupBussiness();
            if (model == null)
            {
                model = new DoctorMV();

            }
            if (id != 0 && model != null)
            {
                var _class = clinic.DoctorTBLs.Find(id);
                model.areaname = _class.AreaTBL.AreaName;
                model.Areaid = _class.Areaid;
                model.cityname = _class.CityTBL.CityName;
                model.Cityid = _class.Cityid;
                model.Arealist = look.fillarea(model.Cityid);
                model.spec = _class.SpecialtyTBL.SpecialtyName;
                model.Specialtyid = _class.Specialtyid;

            }


            model.citylist = look.fillcity();
            model.speclist = look.fillspec();

            return model;

        }
        public PatientMV openPatientCreate(int id = 0, PatientMV model = null)
        {
            LookupBussiness look = new LookupBussiness();

            if (model == null)
            {
                model = new PatientMV();
            }
            if (id != 0 && model != null)
            {
                var _class = clinic.PatientTBLs.Find(id);
                model.areaname = _class.AreaTBL.AreaName;
                model.Areaid   = _class.Areaid;
                model.cityname = _class.CityTBL.CityName;
                model.cityid   = _class.cityid;
                model.Arealist = look.fillarea(model.cityid);
            }


            model.citylist = look.fillcity();



            return(model);
        }