protected override CapabilitiesImplemented CreateInternal(CapabilitiesImplemented claim) { var val = _crmDatastore .Create(Converter.FromApi(claim)); return(Converter.FromCrm(val)); }
protected override StandardsApplicable ByIdInternal(string id) { var val = _crmDatastore .ById(id); return(Converter.FromCrm(val)); }
protected override CapabilitiesImplementedEvidence ByIdInternal(string id) { var val = _crmDatastore .ById(id); return(Converter.FromCrm(val)); }
protected override StandardsApplicable CreateInternal(StandardsApplicable claim) { var val = _crmDatastore .Create(Converter.FromApi(claim)); return(Converter.FromCrm(val)); }
private Solutions GetFromSourceById(string id) { var val = _crmDatastore .ById(id); return(Converter.FromCrm(val)); }
protected override CapabilitiesImplementedEvidence CreateInternal(CapabilitiesImplementedEvidence evidence) { var val = _crmDatastore .Create(Converter.FromApi(evidence)); return(Converter.FromCrm(val)); }
private IEnumerable <Solutions> GetFromSourceByOrganisation(string organisationId) { var vals = _crmDatastore .ByOrganisation(organisationId) .Select(val => Converter.FromCrm(val)); return(vals); }
protected override IEnumerable <CapabilitiesImplemented> BySolutionInternal(string solutionId) { var vals = _crmDatastore .BySolution(solutionId) .Select(val => Converter.FromCrm(val)); return(vals); }
protected override IEnumerable <CapabilityStandard> GetAllFromSource(string path, string parameter = null) { var vals = _crmDatastore .GetAll() .Select(val => Converter.FromCrm(val)); return(vals); }
protected override IEnumerable <StandardsApplicable> BySolutionInternal(string solutionId) { var vals = _crmDatastore .BySolution(solutionId) .Select(val => Converter.FromCrm(val)); return(vals); }
public Frameworks ById(string id) { return(GetInternal(() => { var vals = _crmDatastore .ById(id); return Converter.FromCrm(vals); })); }
public Contacts ById(string id) { return(GetInternal(() => { var val = _crmDatastore .ById(id); return Converter.FromCrm(val); })); }
public Organisations ById(string organisationId) { return(GetInternal(() => { var val = _crmDatastore .ById(organisationId); return Converter.FromCrm(val); })); }
public IEnumerable <Capabilities> ByStandard(string standardId, bool isOptional) { return(GetInternal(() => { var vals = _crmDatastore .ByStandard(standardId, isOptional) .Select(val => Converter.FromCrm(val)); return vals; })); }
public IEnumerable <Capabilities> ByIds(IEnumerable <string> ids) { return(GetInternal(() => { var vals = _crmDatastore .ByIds(ids) .Select(val => Converter.FromCrm(val)); return vals; })); }
public IEnumerable <Capabilities> ByFramework(string frameworkId) { return(GetInternal(() => { var vals = _crmDatastore .ByFramework(frameworkId) .Select(val => Converter.FromCrm(val)); return vals; })); }
public IEnumerable <TechnicalContacts> BySolution(string solutionId) { return(GetInternal(() => { var vals = _crmDatastore .BySolution(solutionId) .Select(val => Converter.FromCrm(val)); return vals; })); }
public IEnumerable <Frameworks> ByStandard(string standardId) { return(GetInternal(() => { var vals = _crmDatastore .ByStandard(standardId) .Select(val => Converter.FromCrm(val)); return vals; })); }
public IEnumerable <Frameworks> ByCapability(string capabilityId) { return(GetInternal(() => { var vals = _crmDatastore .ByCapability(capabilityId) .Select(val => Converter.FromCrm(val)); return vals; })); }
public IEnumerable <Contacts> ByOrganisation(string organisationId) { return(GetInternal(() => { var vals = _crmDatastore .ByOrganisation(organisationId) .Select(val => Converter.FromCrm(val)); return vals; })); }
public TechnicalContacts Create(TechnicalContacts techCont) { return(GetInternal(() => { techCont.Id = UpdateId(techCont.Id); var val = _crmDatastore.Create(Converter.FromApi(techCont)); return Converter.FromCrm(val); })); }
public IEnumerable <Frameworks> GetAll() { return(GetInternal(() => { var vals = _crmDatastore .GetAll() .Select(val => Converter.FromCrm(val)); return vals; })); }
protected override Contacts GetFromSource(string path, string parameter) { if (path == GetCachePathByEmail(parameter)) { var val = _crmDatastore .ByEmail(parameter); return(Converter.FromCrm(val)); } throw new ArgumentOutOfRangeException($"{nameof(path)}", path, "Unsupported cache path"); }
protected override IEnumerable <IEnumerable <StandardsApplicableEvidence> > ByClaimInternal(string claimId) { var retval = new List <IEnumerable <StandardsApplicableEvidence> >(); var allVals = _crmDatastore .ByClaim(claimId); foreach (var vals in allVals) { retval.Add(vals.Select(val => Converter.FromCrm(val))); } return(retval); }
public Solutions Create(Solutions solution) { return(GetInternal(() => { solution.Id = UpdateId(solution.Id); var val = _crmDatastore .Create(Converter.FromApi(solution)); ExpireCache(solution); return Converter.FromCrm(val); })); }
protected override Organisations GetFromSource(string path, string parameter) { if (path == GetCachePathByContact(parameter)) { var val = _crmDatastore .ByContact(parameter); var retval = Converter.FromCrm(val); // currently not used but required in data model retval.Status = "Active"; return(retval); } throw new ArgumentOutOfRangeException($"{nameof(path)}", path, "Unsupported cache path"); }