Beispiel #1
0
 /// <summary>
 /// Tries the get document file.
 /// </summary>
 /// <param name="file">The file.</param>
 /// <param name="onTypeFound">The on type found.</param>
 /// <param name="onContentFound">The on content found.</param>
 /// <returns></returns>
 public static bool TryGetDocumentFile(this HttpPostedFileBase file, Action <string> onTypeFound, Action <byte[]> onContentFound)
 {
     return(file.IsDocumentFile() && file.TryGetFileUpload(onTypeFound, onContentFound));
 }