public async Task <int> AddModuleAsync(int groupId, Module module)
        {
            if (groupId <= 0)
            {
                throw new ArgumentException($"Argument {nameof(groupId)} can't be less or equal zero!");
            }
            if (module == null)
            {
                throw new ArgumentException($"Argument {nameof(module)} can't be null!");
            }

            ModuleDto moduleDto = module.ToModuleDto();

            moduleDto.GroupId = groupId;

            int id = await moduleRepository.AddModuleAsync(moduleDto);

            return(id);
        }