コード例 #1
0
        public CsvActionResult <CustomApplicant> csvIndex()
        {
            IApplicantDL           _applicantDL = new ApplicantDL();
            List <CustomApplicant> applicants   = _applicantDL.GetApplicants();

            return(new CsvActionResult <CustomApplicant>(applicants, "ApplicantDetails.csv"));
        }
コード例 #2
0
        public XmlResult Index()
        {
            IApplicantDL           _applicantDL = new ApplicantDL();
            List <CustomApplicant> applicants   = _applicantDL.GetApplicants();

            return(new XmlResult(applicants));
        }