public IActionResult Export(int id) { try { var result = _assignmentLogic.Export(id); return(File(result, "application/csv", "report.csv")); } catch (NotFoundException) { return(NotFound()); } }