public static CustomOpportunity ConvertToReadableOpportunity(Xrm.Opportunity orig)
        {
            CustomOpportunity co = new CustomOpportunity();
            co.Id = orig.Id;
            co.OpportunityId = orig.OpportunityId.Value;
            co.Name = orig.Name;
            co.Description = orig.Description;
            co.ProjectDescription = orig.new_ProjectDescription;
            co.ProjectRationale = orig.new_ProjectRationale;

            //orig.cov

            return co;
        }
 public bool UpdateOpportunity(Guid id, CustomOpportunity opp)
 {
     var xrm = new XrmServiceContext("Xrm");
     Xrm.Opportunity orig = xrm.OpportunitySet.Where(c => c.Id == id).FirstOrDefault();
     orig.Description = opp.Description;
     xrm.Update(orig);
     return true;
 }