|
@@ -4,9 +4,6 @@ using Microsoft.AspNetCore.Mvc;
|
|
|
using Microsoft.Extensions.Options;
|
|
|
using System;
|
|
|
using System.Collections.Generic;
|
|
|
-using System.Dynamic;
|
|
|
-using System.IdentityModel.Tokens.Jwt;
|
|
|
-using System.IO;
|
|
|
using System.Linq;
|
|
|
using System.Text;
|
|
|
using System.Text.Json;
|
|
@@ -15,9 +12,7 @@ using TEAMModelOS.Models;
|
|
|
using TEAMModelOS.SDK.Models;
|
|
|
using TEAMModelOS.SDK;
|
|
|
using TEAMModelOS.SDK.DI;
|
|
|
-using TEAMModelOS.SDK.DI.AzureCosmos.Inner;
|
|
|
using TEAMModelOS.SDK.Extension;
|
|
|
-using TEAMModelOS.SDK.Helper.Common.StringHelper;
|
|
|
using TEAMModelOS.SDK.Models.Cosmos.Common;
|
|
|
using TEAMModelOS.SDK.Models.Table;
|
|
|
using Azure.Messaging.ServiceBus;
|
|
@@ -29,10 +24,7 @@ using HTEXLib.COMM.Helpers;
|
|
|
using Microsoft.AspNetCore.Authorization;
|
|
|
using System.Net.Http;
|
|
|
using TEAMModelOS.SDK.DI.CoreAPI;
|
|
|
-using TEAMModelOS.SDK.Models.Dtos;
|
|
|
-using Microsoft.Extensions.Hosting;
|
|
|
using Microsoft.AspNetCore.Hosting;
|
|
|
-using DocumentFormat.OpenXml.Office2010.Excel;
|
|
|
|
|
|
namespace TEAMModelOS.Controllers
|
|
|
{
|
|
@@ -244,7 +236,6 @@ namespace TEAMModelOS.Controllers
|
|
|
n++;
|
|
|
}
|
|
|
exam = await client.GetContainer(Constant.TEAMModelOS, "Common").ReplaceItemAsync(request, request.id, new PartitionKey($"{request.code}"));
|
|
|
- return Ok(new { exam });
|
|
|
}
|
|
|
else {
|
|
|
if (request.startTime > now)
|
|
@@ -278,10 +269,10 @@ namespace TEAMModelOS.Controllers
|
|
|
simple.sheet = null;
|
|
|
}
|
|
|
exam = await client.GetContainer(Constant.TEAMModelOS, "Common").CreateItemAsync(request, new PartitionKey($"{request.code}"));
|
|
|
- return Ok(new { exam });
|
|
|
- }
|
|
|
+ }
|
|
|
}
|
|
|
-
|
|
|
+ return Ok(new { exam });
|
|
|
+
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|