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