public FileContentResult Export(int type) { //TODO : edit Document document = _service.Export(type); return(File(document.FileContent, document.FileType, document.DownloadName)); }