Example #1
0
            public async Task <IResult> Handle(CreateUserGroupCommand request, CancellationToken cancellationToken)
            {
                var userGroup = new UserGroup
                {
                    GroupId = request.GroupId,
                    UserId  = request.UserId
                };

                await _userGroupDal.AddAsync(userGroup);

                return(new SuccessResult(Messages.UserGroupAdded));
            }