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); }