public void UpdateNSOOutcome(ProxyNSOOutcome outcome)
        {
            CacheHelper.ClearCache();
            //using (Xrm.XrmServiceContext context = new Xrm.XrmServiceContext("Xrm"))
            //{
            var o = (from s in this.xrm.new_nsooutcomeSet
                     where s.Id == outcome.ID
                     select s).FirstOrDefault();

            if (o != null)
            {
                o.new_Out_ProgressStatus                 = outcome.ProgressStatus;
                o.new_Out_Assumptions                    = outcome.Assumptions;
                o.new_Out_Risks                          = outcome.Risks;
                o.new_Out_AssessmentofCurrentStatus      = outcome.AssessmentOfCurrentStatus;
                o.new_Out_RisksAssessmentofCurrentStatus = outcome.RiskAssessmentOfCurrentStatus;

                o.new_Out_Problems            = outcome.Problems;
                o.new_Out_ProposedActionTaken = outcome.ActionTaken;
                o.new_Out_RecentDevelopment   = outcome.RecentDevelopment;
                o.new_Out_Date = outcome.Date;

                this.xrm.UpdateObject(o);
                this.xrm.SaveChanges();
            }
            //}
        }
        public Entity.ProxyNSOOutcome GetOneNSOOutcome(Guid id)
        {
            CacheHelper.ClearCache();
            ProxyNSOOutcome proxy = null;

            using (Xrm.XrmServiceContext context = new Xrm.XrmServiceContext("Xrm"))
            {
                var o = context.new_nsooutcomeSet.Where(c => c.Id == id).FirstOrDefault();
                if (o != null)
                {
                    proxy = ObjectConverter.SingleConvertToProxyNSOOutcome(o);
                }
            }
            return(proxy);
        }