예제 #1
0
        public async Task <IEnumerable <KudosPieChartSliceViewModel> > KudosPieChartData(string userId = null)
        {
            userId ??= User.Identity.GetUserId();

            var pieChartDto = await _kudosService.GetKudosPieChartDataAsync(GetUserAndOrganization().OrganizationId, userId);

            var result = _mapper.Map <IEnumerable <KudosPieChartSliceDto>, IEnumerable <KudosPieChartSliceViewModel> >(pieChartDto);

            return(result);
        }