public IActionResult UpsertDoctorStationRoles(int doctorId, int stationId, List <int> roles) { try { var rlt = new CHIS.Api.syshis(_db).UpsertDoctorStationRoles(doctorId, stationId, roles); return(Json(new { rlt = rlt, msg = "更新角色成功" })); } catch (Exception ex) { return(Json(new { rlt = false, msg = ex.Message })); } }
/// <summary> /// 业务功能页面入口 /// </summary> /// <returns></returns> public IActionResult StationRoles() { var model = new CHIS.Api.syshis(_db).AllRolesOfStationCanSelect(); return(View("~/Views/Sys/Roles/StationRolesIndex.cshtml", model));//此处需要特别指明页面文件的位置 }