Try this code:
public ActionResult Download(string path)
{
var Dpath = path.ToString();
int index = Dpath.LastIndexOf("/");
string filename = Dpath.Substring(index);
Dpath = Dpath.Remove(index) + filename;
if (path != null)
return File(Dpath, "all", filename);
else return View("");
}