update 20250505

This commit is contained in:
Stefan Hutter
2025-05-04 17:33:00 +02:00
parent c7a4e24e3f
commit 5aa75038e7
69 changed files with 405 additions and 170 deletions

View File

@@ -51,6 +51,23 @@ namespace ILMocup.Controllers
return Content(HttpStatusCode.OK, rs);
}
public IHttpActionResult Revision()
{
string json = "";
string rs = RandomString(6);
if (HttpContext.Current.Request.InputStream.Length > 0)
{
using (var inputStream = new StreamReader(HttpContext.Current.Request.InputStream))
{
json = inputStream.ReadToEnd();
}
}
string filename = @"X:\jsontemp\ILMockup" + @"\Revision_" + DateTime.Now.ToString("yyyyMMdd_hhmmss") + "_" + rs + ".json";
System.IO.File.WriteAllText(filename, json);
return Content(HttpStatusCode.OK, rs);
}
private static Random random = new Random();
public static string RandomString(int length)