コード例 #1
0
        public async Task <LeadReferralsListResponseModel> GetLeadReferralsAsync()
        {
            var result = await _referralService.GetLeadReferralsAsync(_requestContext.UserId);

            return(new LeadReferralsListResponseModel
            {
                LeadReferrals = _mapper.Map <IReadOnlyCollection <LeadReferral> >(result.ReferralLeads)
            });
        }