public IRpcMethodResult GetAddressInfo(string accountId) { try { AccountComponent component = new AccountComponent(); var result = component.GetAccountInfo(accountId); return(Ok(result)); } catch (CommonException ce) { return(Error(ce.ErrorCode, ce.Message, ce)); } catch (Exception ex) { return(Error(ErrorCode.UNKNOWN_ERROR, ex.Message, ex)); } }