コード例 #1
0
        public List <ReportDto> GetAllReport()
        {
            List <ReportDto> reportsDtos = new List <ReportDto>();

            List <Report> report = new List <Report>();

            report = reportRepository.GetAllReport();

            foreach (var item in report)
            {
                ReportDto rep = new ReportDto();
                rep.ID               = item.ID;
                rep.Location         = item.Location;
                rep.ReportName       = item.ReportName;
                rep.RecordUserCount  = item.RecordUserCount;
                rep.RecordPhoneCount = item.RecordPhoneCount;
                rep.CreatedDateTime  = item.CreatedDate.ToShortDateString() + "-" + item.CreatedDate.ToShortTimeString();
                rep.Status           = item.status;

                reportsDtos.Add(rep);
            }

            return(reportsDtos);
        }
コード例 #2
0
 public List <Report> GetAllReport()
 {
     return(reportRepository.GetAllReport());
 }