public FileContentResult SyncFile(string type, string culture) { Type t = TypeLogic.GetType(type); CultureInfo c = CultureInfo.GetCultureInfo(culture); var file = TranslatedInstanceLogic.ExportExcelFileSync(t, c); return(File(file.Content, MimeMapping.GetMimeMapping(file.FileName), file.FileName)); }