Ejemplo n.º 1
0
 public virtual bool SaveFile(HttpContext context)
 {
     if (context.Request.Files.Count != 1)
     {
         return(false);
     }
     try
     {
         if ((BlobHandlerInfo.Current != null) && BlobHandlerInfo.Current.ProcessUploadViaBusinessRule())
         {
             return(true);
         }
         using (SqlStatement updateBlob = BlobFactory.CreateBlobUpdateStatement())
             return(updateBlob.ExecuteNonQuery() == 1);
     }
     catch (Exception err)
     {
         Error = err.Message;
         return(false);
     }
 }