public async Task RemoveAIConfigFromProjectAsync(int projectId, IAIModelConfig model)
        {
            var item = (await project_AiModelConfigController.GetAllWhereAsync(e =>
                                                                               e.ProjectKey == projectId && e.AIConfigKey == model.Id)).FirstOrDefault();

            if (item != null)
            {
                await project_AiModelConfigController.DeleteAsync(item.Id);
            }
            await project_AiModelConfigController.SaveChangesAsync();
        }
        public async Task DeleteAsync(int id)
        {
            var project = await projectController.GetByIdAsync(id);

            if (File.Exists(project.LabeledPath))
            {
                File.Delete(project.LabeledPath);
            }
            Directory.Delete($"./Ressources/Images/{project.Id}_{project.Name}", true);
            await projectController.DeleteAsync(id);

            await projectController.SaveChangesAsync();
        }
        public async Task RemoveUserFromProject(int projectId, IUser model)
        {
            var projectUser =
                (await project_userController.GetAllWhereAsync(
                     e => e.UserIdKey == model.Id && e.ProjectKey == projectId))
                .FirstOrDefault();

            if (model != null)
            {
                await project_userController.DeleteAsync(model.Id);
            }
            await project_userController.SaveChangesAsync();
        }