Exemple #1
0
        public async Task <IActionResult> GetReveneuAmount()
        {
            Guid    partnerId = Guid.Parse(User.Identity.Name);
            Partner partner   = await _partnerService.GetPartnerByIdAsync(partnerId);

            int reveneuAmount = await _financeService.GetReveneuAmountForPartnerAsync(partner);

            return(Ok(reveneuAmount));
        }