public async Task <IActionResult> Details() { HospitalDetailsViewModel hospitalDetailsViewModel = (await hospitalService.Get()) .To <HospitalDetailsViewModel>(); return(View(hospitalDetailsViewModel)); }
private void cmbHospital_SelectedIndexChanged(object sender, EventArgs e) { cmbPoliclinic.Enabled = true; ComboBoxItem cbi = (ComboBoxItem)cmbHospital.SelectedItem; CHospital = hospitalService.Get(cbi.Value); PoliclinicBind(CHospital.Id); }