示例#1
0
        public async Task <ISTrainingPartResponse <bool> > AddGroupAsync(Group group)
        {
            Logger.Log.Info($"Add group: {group.Name}");

            var res = await repository.AddGroupAsync(group);

            if (res)
            {
                Clients.Group(Consts.AuthorizedGroup).OnChanged(DbChangeStatus.Add, group);
            }

            return(res);
        }