public async Task <ResponseMessage <bool> > IsResidentUser(string userId, [FromRoute] string buildingId) { ResponseMessage <bool> response = new ResponseMessage <bool>(); try { response.Extension = await _buildingsManager.IsResidentUser(userId, buildingId); } catch (Exception e) { response.Code = ResponseCodeDefines.ServiceError; response.Message = e.ToString(); Logger.Error($"用户{userId ?? ""}是否是驻场(IsResidentUser)报错:\r\n{e.ToString()},\r\n请求参数为:\r\n(buildingId){buildingId ?? ""}"); } return(response); }