Exemplo n.º 1
0
 private IEnumerable<Guid> groupRisks(ClientData client, Guid riskId) {
   var risk = context.Risks.Find(riskId);
   if (String.IsNullOrEmpty(risk.Grouping))
     return NoGuids;
   return context.Risks.Where(r => r.Grouping == risk.Grouping).Select(r => r.Id).ToList();
 } // groupRisks
Exemplo n.º 2
0
    } // projectQuestions

    private IList<ReferralAgency> referralAgencies(ClientData clientData) {
      var poRepo = new ProjectOrganisationRepository();
      var projectOrg = projectOrganisation(clientData);
      var agencies = poRepo.FetchReferralAgencies(projectOrg.Details.Id);
      return agencies;
    } // referralAgencies
Exemplo n.º 3
0
    } // projectOrg

    private RiskMap riskMap(ClientData clientData) {
      var projectOrg = projectOrganisation(clientData);
      var project = context.Projects.Where(p => p.Id == clientData.ProjectId).Single();
      var riskMapRepo = new RiskMapRepository(projectOrg.Details.Id);
      return riskMapRepo.RiskMap(project.RiskFramework);
    } // riskMap
Exemplo n.º 4
0
    } // riskMap

    private IList<ProjectQuestionData> projectQuestions(ClientData clientData) {
      var project = context.Projects.Where(p => p.Id == clientData.ProjectId).Include(p => p.Questions).Single();
      return project.Questions;
    } // projectQuestions
Exemplo n.º 5
0
    } // Client

    private ProjectOrganisationData projectOrganisation(ClientData clientData) {
      var projectOrg = context.ProjectOrganisations.Where(po => po.Projects.Select(p => p.Id).ToList().Contains(clientData.ProjectId)).Include(po => po.Details).Single();
      return projectOrg;
    } // projectOrg