Exemplo n.º 1
0
 public string License([FromBody] ProductImage image, [FromServices] IHostingEnvironment hosting)
 {
     try
     {
         var name = image.SaveLicense(hosting);
         //UtilHelper.Log(name);
         return(name);
     }
     catch (Exception e)
     {
         UtilHelper.Log(e.ToString());
         throw;
     }
 }