Exemplo n.º 1
0
 public async Task <IActionResult> OverlayImage(int?x = null, int?y = null)
 {
     try
     {
         return(Ok(new
         {
             success = true, token = OverlayManager.ComputeOverlay(await GetFileToTemp(), x, y)
         }));
     }
     catch (Exception ex)
     {
         Debug.WriteLine("Exception OverlayImage : {0}", ex);
         return(BadRequest(new
         {
             errorMessage = ex.Message
         }));
     }
 }
Exemplo n.º 2
0
 public async Task <IActionResult> OverlayImage()
 {
     try
     {
         return(Ok(new
         {
             success = true, token = OverlayManager.ComputeOverlay(await GetFileToTemp())
         }));
     }
     catch (Exception ex)
     {
         LogManager.AddOverlayMessage(LogLevel.Critical, "Exception non gérée", "Exception", ex);
         return(BadRequest(new
         {
             errorMessage = ex.Message
         }));
     }
 }