/// <summary> /// Creates one or more users /// </summary> /// <param name="userModels">User models</param> /// <returns>Information of the created users</returns> public async Task <UserModel[]> Create(params UserModel[] userModels) { foreach (var item in userModels) { item.Id = Guid.NewGuid(); item.Emails.ForEach(x => x.Id = Guid.NewGuid()); item.Telephones.ForEach(x => x.Id = Guid.NewGuid()); await _UserDb.Create(item); } return(userModels); }