Example #1
0
        private WinOpportunityResponse HandleWinOpportunity(OrganizationRequest orgRequest, EntityReference userRef)
        {
            var request = MakeRequest <WinOpportunityRequest>(orgRequest);
            var resp    = new WinOpportunityResponse();

            dataMethods.CloseOpportunity(OpportunityState.Won, request.Status, request.OpportunityClose, userRef);
            return(resp);
        }