public void UpdateNSOOutput(ProxyNSOOutput output)
        {
            CacheHelper.ClearCache();
            //using (Xrm.XrmServiceContext context = new Xrm.XrmServiceContext("Xrm"))
            //{
            var o = (from s in this.xrm.new_nsooutputSet
                     where s.Id == output.ID
                     select s).FirstOrDefault();

            if (o != null)
            {
                o.new_Outp_ProgressStatus                 = output.ProgressStatus;
                o.new_Outp_Assumptions                    = output.Assumptions;
                o.new_Outp_Risks                          = output.Risks;
                o.new_Outp_AssessmentofCurrentStatus      = output.AssessmentOfCurrentStatus;
                o.new_Outp_RisksAssessmentofCurrentStatus = output.RiskAssessmentOfCurrentStatus;

                o.new_Outp_Problems            = output.Problems;
                o.new_Outp_ProposedActionTaken = output.ActionTaken;
                o.new_Outp_RecentDevelopment   = output.RecentDevelopment;
                o.new_Outp_Date = output.Date;

                this.xrm.UpdateObject(o);
                this.xrm.SaveChanges();
            }
            //}
        }
        public Entity.ProxyNSOOutput GetOneNSOOutput(Guid id)
        {
            CacheHelper.ClearCache();
            ProxyNSOOutput proxy = null;
            //using (Xrm.XrmServiceContext context = new Xrm.XrmServiceContext("Xrm"))
            //{
            var o = this.xrm.new_nsooutputSet.Where(c => c.Id == id).FirstOrDefault();

            if (o != null)
            {
                proxy = ObjectConverter.SingleConvertToProxyNSOOutput(o);
            }
            //}
            return(proxy);
        }