Exemplo n.º 1
0
 public IActionResult SavePageForDocumentToProcess([FromBody] SavePageBitmapForDocumentToProcess expectedData)
 {
     try
     {
         _saveDocumentPageHandler.Handle(expectedData);
         return(new JsonResult(new FileStorageRequestResult
         {
             Success = true
         }));
     }
     catch
     {
         return(new JsonResult(new FileStorageRequestResult
         {
             Success = false
         }));
     }
 }
 public IActionResult SavePageForDocumentToProcess([FromBody] SaveBitmapForTemplatePageCanvasDefinition pageCanvas)
 {
     try
     {
         _savePageCanvasBitmapHandler.Handle(pageCanvas);
         return(new JsonResult(new FileStorageRequestResult
         {
             Success = true
         }));
     }
     catch
     {
         return(new JsonResult(new FileStorageRequestResult
         {
             Success = false
         }));
     }
 }