Beispiel #1
0
        private MpOpportunity GetOpportunity(string token, int opportunityId, List <int> opportunityIds)
        {
            var opportunity = (opportunityId > 0)
                ? _opportunityService.GetOpportunityById(opportunityId, token)
                : _opportunityService.GetOpportunityById(opportunityIds.FirstOrDefault(), token);

            return(opportunity);
        }