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 BookingMV openbookingCreate(BookingMV model = null) { LookupBussiness look = new LookupBussiness(); if (model == null) { model = new BookingMV(); } model.PatientList = look.fillpatient(); model.SpecList = look.fillspec(); return(model); }