Пример #1
0
        public async Task <Response <GetPlanDetailsViewModel> > Handle(GetPlanDetailsQuery request, CancellationToken cancellationToken)
        {
            var plan = await _paymentPlanRepository.GetByIdAsync(request.PlanId);

            var plandetailsviewmodel = _mapper.Map <GetPlanDetailsViewModel>(plan);

            return(new Response <GetPlanDetailsViewModel>(plandetailsviewmodel));
        }
 public async Task <PaymentPlanEntity> GetByIdAsync(int paymentPlanId)
 {
     return(await _paymentPlanRepository.GetByIdAsync(paymentPlanId));
 }