public async Task <IResult> Handle(CreateUserGroupCommand request, CancellationToken cancellationToken) { var userGroup = new UserGroup { GroupId = request.GroupId, UserId = request.UserId }; _userGroupDal.Add(userGroup); await _userGroupDal.SaveChangesAsync(); return(new SuccessResult(Messages.UserGroupAdded)); }