Exemplo n.º 1
0
        public async Task <ApiResult> GetOrgNode(int id)
        {
            ApiResult ret = new ApiResult();

            try
            {
                OrgTree node = await _orgRepo.GetNodeView(id);

                ret.code = Code.Success;
                ret.data = node;
            }
            catch (Exception ex)
            {
                ret.code = Code.Failure;
                ret.msg  = ex.Message;
            }

            return(ret);
        }