using System.Collections.Generic;
public class HomeController : Controller
public ActionResult Index()
public FileResult Download()
var bytes = default(byte[]);
using (var zip = new ZipFile())
zip.AddEntry("text.txt", new byte[] {});
zip.AddEntry("text\\text.txt", new byte[] {});
using (var ms = new MemoryStream())
return File(bytes, System.Net.Mime.MediaTypeNames.Application.Zip);