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