Ejemplo n.º 1
0
        /// <summary>
        /// Reads single group.
        /// </summary>
        /// <param name="uuid"></param>
        /// <returns></returns>
        public async Task <(GroupInfo Data, DataStatus Status)> DataReadGroupAsync(Guid uuid)
        {
            var(group, status) = await ReadGroupAsync(uuid, GroupFlags.ALL);

            if (status.IsGood)
            {
                Data.UpdateGroups(group);
            }
            else
            {
                _logger?.LogError($"Error code {status.Code} in reading group: {status.Explanation}.");
            }

            Data.Status = status;
            return(group, Data.Status);
        }