public async Task <bool> Handle(CreateTeamCommand request, CancellationToken cancellationToken) { var team = new Team(request.Name, string.Empty, TimeHelper.ConvertDataTimeToLong(DateTime.Now), request.Introduction, request.CreatePerson); await _teamRepository.AddAsync(team); return(await _teamRepository.UnitOfWork.SaveEntitiesAsync()); }