/// <summary> /// 根据医院Id获取医院 /// </summary> /// <param name="id">医院Id</param> /// <returns>医院</returns> public async Task<AdminHospitalDto> GetHospitalById(long id) { var hospital = await _repository.GetHospitalById(id); return Mapper.Map<Hospital, AdminHospitalDto>(hospital); }