Exemple #1
0
 public async Task <CreditCardDto> Get(Guid personId, Guid id)
 {
     using (busyIndicatorService.Show())
     {
         return(await creditCardService.Get(personId, id));
     }
 }
Exemple #2
0
        public IEnumerable <CreditCard> Get(Guid accountCode)
        {
            var account = accountRepository.Get(accountCode);

            var cards = creditCardService.Get(account);

            return(cards.Select(card => new CreditCard(card)));
        }
        public IActionResult Get([FromBody] CreditCard card)
        {
            var result = _creditCardService.Get(card);

            if (result.Success)
            {
                return(Ok(result));
            }
            return(BadRequest(result));
        }