Update 20260130

This commit is contained in:
Stefan Hutter
2026-01-30 16:27:35 +01:00
parent 2d1525575b
commit 41588e8c92
58 changed files with 16895 additions and 402 deletions

View File

@@ -140,7 +140,7 @@ namespace API_NetFramework.Controllers
}
[HttpGet]
[Route("API/GetUnterschriftAsBase64New")]
[Route("API/GetUnterschriftAsBase64IL")]
public IHttpActionResult GetUnterschriftAsBase64IL(string TGNummer, int ImageWidth = 0, int ImageHeight = 0)
{
@@ -156,11 +156,13 @@ namespace API_NetFramework.Controllers
apireturn.field = "";
try
{
return BadRequest(Newtonsoft.Json.JsonConvert.SerializeObject(apireturn));
//return BadRequest(Newtonsoft.Json.JsonConvert.SerializeObject(apireturn));
return Content(HttpStatusCode.BadRequest, apireturn);
}
catch
{
return Content(HttpStatusCode.Unauthorized, "Invalid Token or API-Key");
//return Content(HttpStatusCode.Unauthorized, "Invalid Token or API-Key");
return Content(HttpStatusCode.BadRequest, apireturn);
}
finally { apireturn = null; };
}
@@ -187,11 +189,13 @@ namespace API_NetFramework.Controllers
try
{
return BadRequest(Newtonsoft.Json.JsonConvert.SerializeObject(apireturn));
//return BadRequest(Newtonsoft.Json.JsonConvert.SerializeObject(apireturn));
return Content(HttpStatusCode.BadRequest, apireturn);
}
catch (Exception ex)
{
return Content(HttpStatusCode.InternalServerError, "Unterschfit für TGNumemr " + TGNummer + " nicht vorhanden");
//return Content(HttpStatusCode.InternalServerError, "Unterschfit für TGNumemr " + TGNummer + " nicht vorhanden");
return Content(HttpStatusCode.BadRequest, apireturn);
}
finally
{
@@ -242,11 +246,12 @@ namespace API_NetFramework.Controllers
apiok.file=Convert.ToBase64String(imageBytes);
try
{
return Ok(Newtonsoft.Json.JsonConvert.SerializeObject(apiok));
return Ok(apiok);
}
catch (Exception e)
{
return Content(HttpStatusCode.InternalServerError, e.Message);
//return Content(HttpStatusCode.InternalServerError, e.Message);
}
finally
{