예제 #1
0
파일: FccManager.cs 프로젝트: MoZapT/fcc
        public async Task <bool> SetPersonRelation(string inviter, string invited, RelationType type)
        {
            bool success = true;

            foreach (var relation in await GetUpdateRelationsStack(inviter, invited, type))
            {
                bool withoutErrors = !string.IsNullOrWhiteSpace(await _repo.CreatePersonRelation(relation));
                if (!withoutErrors)
                {
                    success = false;
                    //TODO error logging handling
                }
            }

            return(success);
        }