Exemplo n.º 1
0
        public async Task <IActionResult> Get(Guid id)
        {
            (PaymentRespModel paymentRespModel, ModelStateDictionary modelStateDictionary) = await paymentManager.GetAsync(id, ModelState);

            if (!modelStateDictionary.IsValid)
            {
                return(BadRequest(modelStateDictionary));
            }

            if (paymentRespModel == null)
            {
                return(NotFound());
            }

            PaymentRespVM paymentRespVM = mapper.Map <PaymentRespModel, PaymentRespVM>(paymentRespModel);

            return(Ok(paymentRespVM));
        }