コード例 #1
0
ファイル: Repository.Projects.cs プロジェクト: ifcwebapp/BES
        public List<Project> GetProjects(string countryCode)
        {
            return LogTime(() =>
            {
                var db = new DatabaseRepository();
                var result = db.GetBankProjects(countryCode).Select(d => new Project
                {
                    Amount = d.Amount,
                    ApprovalDate = d.ApprovalDate,
                    CountryCode = d.CountryCode,
                    ProjectId = d.ProjectId,
                    ProjectLink = d.ProjectLink,
                    ProjectName = d.ProjectName,
                    ProjectType = d.ProjectType,
                    ProjectStatus = d.ProjectStatus
                }).ToList();

                return result;
            }, "project request for country {0}", countryCode);
        }