public async Task <CreditCardDto> Get(Guid personId, Guid id) { using (busyIndicatorService.Show()) { return(await creditCardService.Get(personId, id)); } }
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)); }