private FileContentResult PrepareFileContentRersult(ConcurrentBag <FileEntity> fileList) { if (fileList.Count > 0) { const string contentType = "application/zip"; HttpContext.Response.ContentType = contentType; var result = new FileContentResult(fileList.Compress(), contentType) { FileDownloadName = "Polygons.zip" }; return(result); } return(null); }