/// <summary> /// 编辑医生 /// </summary> /// <param name = "id" >医生Id</ param > /// < returns ></ returns > public async Task <IActionResult> Edit(long id) { await ShowHospitalList(false); ViewBag.SexList = EnumExtensionHelper.EnumToSelectList <SexEnum>(false); ViewBag.UserTypeList = EnumExtensionHelper.EnumToSelectList <UserTypeEnum>(false); ViewBag.DeptList = EnumExtensionHelper.EnumToSelectList <DeptEnum>(false); ViewBag.TitleList = EnumExtensionHelper.EnumToSelectList <TitleEnum>(false); if (id > 0) { var model = await _service.GetAdminDoctorById(id); return(PartialView("_EditPartial", model)); } else { return(PartialView("_EditPartial", new AdminDoctorDto())); } }